[K/N] Better removing of extra safepoints

This commit is contained in:
Pavel Kunyavskiy
2022-06-03 18:45:35 +02:00
committed by Space
parent c2316ca305
commit f4ea929d8e
6 changed files with 53 additions and 25 deletions
+2 -1
View File
@@ -586,7 +586,8 @@ extern "C" void CheckGlobalsAccessible() {
// Always accessible
}
extern "C" RUNTIME_NOTHROW CODEGEN_INLINE_POLICY void Kotlin_mm_safePointFunctionPrologue() {
// it would be inlined manually in RemoveRedundantSafepointsPass
extern "C" RUNTIME_NOTHROW NO_INLINE void Kotlin_mm_safePointFunctionPrologue() {
auto* threadData = mm::ThreadRegistry::Instance().CurrentThreadData();
AssertThreadState(threadData, ThreadState::kRunnable);
threadData->gc().SafePointFunctionPrologue();