From 759d5009d61272700f3613d9c677203416c80b00 Mon Sep 17 00:00:00 2001 From: Alexander Shabalin Date: Wed, 5 Apr 2023 13:16:01 +0000 Subject: [PATCH] [K/N] Fix combination of aggressive GC and state check Merge-request: KT-MR-9483 Merged-by: Alexander Shabalin --- kotlin-native/runtime/src/gc/common/cpp/GCSchedulerImpl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_; };