diff --git a/kotlin-native/runtime/src/gc/common/cpp/GCScheduler.hpp b/kotlin-native/runtime/src/gc/common/cpp/GCScheduler.hpp index c168dfaa119..9ea8e845371 100644 --- a/kotlin-native/runtime/src/gc/common/cpp/GCScheduler.hpp +++ b/kotlin-native/runtime/src/gc/common/cpp/GCScheduler.hpp @@ -13,6 +13,7 @@ #include #include "CompilerConstants.hpp" +#include "Logging.hpp" #include "Types.h" #include "Utils.hpp" @@ -41,6 +42,8 @@ struct GCSchedulerConfig { GCSchedulerConfig() noexcept { if (compiler::gcAggressive()) { + // TODO: Make a separate GCSchedulerData for the aggressive mode and move this log there. + RuntimeLogInfo({kTagGC}, "Initialize GC scheduler config in the aggressive mode"); // TODO: Make it even more aggressive and run on a subset of backend.native tests. threshold = 1000; allocationThresholdBytes = 10000; diff --git a/kotlin-native/runtime/src/main/cpp/CompilerConstants.cpp b/kotlin-native/runtime/src/main/cpp/CompilerConstants.cpp index 091b4a74ffd..518615e9b97 100644 --- a/kotlin-native/runtime/src/main/cpp/CompilerConstants.cpp +++ b/kotlin-native/runtime/src/main/cpp/CompilerConstants.cpp @@ -12,7 +12,7 @@ using namespace kotlin; // These are defined by overrideRuntimeGlobals in IrToBitcode.kt RUNTIME_WEAK int32_t Kotlin_destroyRuntimeMode = 1; -RUNTIME_WEAK int32_t Kotiln_gcAggressive = 0; +RUNTIME_WEAK int32_t Kotlin_gcAggressive = 0; RUNTIME_WEAK int32_t Kotlin_workerExceptionHandling = 0; RUNTIME_WEAK int32_t Kotlin_freezingEnabled = 1; RUNTIME_WEAK const Kotlin_getSourceInfo_FunctionType Kotlin_getSourceInfo_Function = nullptr; @@ -22,7 +22,7 @@ ALWAYS_INLINE compiler::DestroyRuntimeMode compiler::destroyRuntimeMode() noexce } ALWAYS_INLINE bool compiler::gcAggressive() noexcept { - return Kotiln_gcAggressive != 0; + return Kotlin_gcAggressive != 0; } ALWAYS_INLINE compiler::WorkerExceptionHandling compiler::workerExceptionHandling() noexcept {