Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 committed Jul 21, 2020
1 parent 9502f6a commit 03c059a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/lib/compiler-rt/lib/lsan/lsan_common_emscripten.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ void HandleLeaks() {
void LockStuffAndStopTheWorld(StopTheWorldCallback callback, void *argument) {
// Currently, on Emscripten this does nothing and just calls the callback.
// This works fine on a single-threaded environment.
LockThreadRegistry();
LockAllocator();
StopTheWorld(callback, argument);
UnlockAllocator();
UnlockThreadRegistry();
}

u32 GetCurrentThread();
Expand Down

0 comments on commit 03c059a

Please sign in to comment.