Add a separate aggressive GC mode

This commit is contained in:
Alexander Shabalin
2021-06-18 12:03:02 +00:00
committed by Space
parent 1cfe1c41ef
commit e240b8a8ee
10 changed files with 41 additions and 4 deletions
@@ -31,13 +31,18 @@ struct InitNode {
InitNode* next;
};
// This global is overriden by the compiler.
// These globals are overriden by the compiler.
RUNTIME_WEAK DestroyRuntimeMode Kotlin_destroyRuntimeMode = DESTROY_RUNTIME_ON_SHUTDOWN;
RUNTIME_WEAK KInt Kotlin_gcAggressive = 0;
DestroyRuntimeMode Kotlin_getDestroyRuntimeMode() {
return Kotlin_destroyRuntimeMode;
}
bool Kotlin_getGcAggressive() {
return Kotlin_gcAggressive != 0;
}
namespace {
InitNode* initHeadNode = nullptr;