Skip to content

Commit

Permalink
When finalize ThreadLocal, we should remove gc event listener from bdwgc
Browse files Browse the repository at this point in the history
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
  • Loading branch information
ksh8281 authored and clover2123 committed May 7, 2024
1 parent f039511 commit af5ac14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime/ThreadLocal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ void ThreadLocal::finalize()
// g_gcEventListenerSet
delete g_gcEventListenerSet;
g_gcEventListenerSet = nullptr;
GC_set_on_collection_event(nullptr);

// g_astAllocator
delete g_astAllocator;
Expand Down

0 comments on commit af5ac14

Please sign in to comment.