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

Commit

Permalink
Fix cleanup issue in ChakraCore xplat
Browse files Browse the repository at this point in the history
PR-URL: #147
Reviewed-By: Kunal Pathak <[email protected]>
Reviewed-By: Mark Marron <[email protected]>
  • Loading branch information
digitalinfinity committed Nov 26, 2016
1 parent 638947d commit cc9c687
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deps/chakrashim/core/lib/Jsrt/JsrtHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,8 @@ void JsrtCallbackState::ObjectBeforeCallectCallbackWrapper(JsObjectBeforeCollect
// setup the cleanup
// we do not track the main thread. When it exits do the cleanup below
atexit([]() {
ThreadBoundThreadContextManager::DestroyContextAndEntryForCurrentThread();

JsrtRuntime::Uninitialize();
ThreadBoundThreadContextManager::DestroyContextAndEntryForCurrentThread();

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

0 comments on commit cc9c687

Please sign in to comment.