Remove unneeded zeroing TLS (#4480)

This commit is contained in:
Alexander Shabalin
2020-10-29 22:20:31 +03:00
committed by Stanislav Erokhin
parent 1a97a6ca1a
commit 4297b521e4
5 changed files with 25 additions and 12 deletions
@@ -224,11 +224,6 @@ KBoolean Konan_Platform_isDebugBinary() {
return KonanNeedDebugInfo ? true : false;
}
void Kotlin_zeroOutTLSGlobals() {
if (runtimeState != nullptr && runtimeState->memoryState != nullptr)
InitOrDeinitGlobalVariables(DEINIT_THREAD_LOCAL_GLOBALS, runtimeState->memoryState);
}
bool Kotlin_memoryLeakCheckerEnabled() {
return g_checkLeaks;
}