Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit cc9c687

Browse files
Fix cleanup issue in ChakraCore xplat
PR-URL: #147 Reviewed-By: Kunal Pathak <Kunal.Pathak@microsoft.com> Reviewed-By: Mark Marron <marron@microsoft.com>
1 parent 638947d commit cc9c687

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

deps/chakrashim/core/lib/Jsrt/JsrtHelper.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,8 @@ void JsrtCallbackState::ObjectBeforeCallectCallbackWrapper(JsObjectBeforeCollect
110110
// setup the cleanup
111111
// we do not track the main thread. When it exits do the cleanup below
112112
atexit([]() {
113-
ThreadBoundThreadContextManager::DestroyContextAndEntryForCurrentThread();
114-
115113
JsrtRuntime::Uninitialize();
114+
ThreadBoundThreadContextManager::DestroyContextAndEntryForCurrentThread();
116115

117116
// thread-bound entrypoint should be able to get cleanup correctly, however tlsentry
118117
// for current thread might be left behind if this thread was initialized.

0 commit comments

Comments
 (0)