4d346d3735
Including * Support thread state switching in codegen * Introduce and use GCUnsafeCall annotation * Switch thread state in C++ runtime code Also * Register current thread in Mark&Sweep tests * Store MemoryState in Worker instance * Set worker tid in WorkerInit
19 lines
535 B
Kotlin
19 lines
535 B
Kotlin
/*
|
|
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
|
* that can be found in the LICENSE file.
|
|
*/
|
|
|
|
package kotlin.system
|
|
|
|
import kotlin.native.internal.GCUnsafeCall
|
|
|
|
/**
|
|
* Terminates the currently running process.
|
|
*
|
|
* @param status serves as a status code; by convention,
|
|
* a nonzero status code indicates abnormal termination.
|
|
*
|
|
* @return This method never returns normally.
|
|
*/
|
|
@GCUnsafeCall("Kotlin_system_exitProcess")
|
|
public external fun exitProcess(status: Int): Nothing |