diff --git a/kotlin-native/runtime/src/gc/common/cpp/GCSchedulerImpl.hpp b/kotlin-native/runtime/src/gc/common/cpp/GCSchedulerImpl.hpp index 79e11476101..2c66aef2a03 100644 --- a/kotlin-native/runtime/src/gc/common/cpp/GCSchedulerImpl.hpp +++ b/kotlin-native/runtime/src/gc/common/cpp/GCSchedulerImpl.hpp @@ -114,7 +114,7 @@ private: size_t maxSize_; // TODO: Consider replacing mutex + global set with thread local sets sychronized on STW. - std::mutex mutex_; + SpinLock mutex_; std_support::unordered_set metSafePoints_; };