Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
Fix locking wrong lock...
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Mar 13, 2020
1 parent 0a9bb18 commit 7d4ca14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/memory/split.jl
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ function pool_alloc(sz)
if szclass != HUGE && remainder > 0 && size_class(remainder) == szclass
split = split!(block, sz)
split.state = AVAILABLE
@lock freed_lock begin
@lock pool_lock begin
push!(pool, split)
end
end
Expand Down

0 comments on commit 7d4ca14

Please sign in to comment.