History

Fix bug in global alloc lock function.

arr committed 9 years ago

Commit 87f2d5b1 parent ad4a6c31 file · +1 −0Browse files

Showing the changes to src/vm/vm_memory.cpp (1 of 1 file). Show all

Unified · Split

src/vm/vm_memory.cpp+1−0
@@ -86,6 +86,7 @@ global_alloc_lock_t disvm::runtime::get_global_alloc_lock() · 85 unmodified lines
8686 // Block while trying to get lock
8787 while (!lock_state.compare_exchange_strong(expected, lock_state_t::pending))
8888 {
89+ expected = lock_state_t::none;
8990 std::unique_lock<std::mutex> lock{ global_lock };
9091 release_lock.wait(lock);
9192 }