Fix single-thread check
This commit is contained in:
committed by
Vasily Levchenko
parent
5b6a8a3bdb
commit
9295d7cf60
@@ -120,6 +120,9 @@ RuntimeState* initRuntime() {
|
||||
RuntimeAssert(lastStatus != kGlobalRuntimeShutdown, "Kotlin runtime was shut down. Cannot create new runtimes.");
|
||||
}
|
||||
firstRuntime = lastStatus == kGlobalRuntimeUninitialized;
|
||||
if (CurrentMemoryModel == MemoryModel::kExperimental) {
|
||||
RuntimeCheck(firstRuntime, "Experimental MM does not support multiple mutator threads yet");
|
||||
}
|
||||
result->memoryState = InitMemory(firstRuntime);
|
||||
result->worker = WorkerInit(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user