[K/N] Mark Throwable.getStackTrace[Addresses] with ExperimentalNativeApi

As a part of efforts to stabilize Native stdlib #KT-55765.
This commit is contained in:
Abduqodiri Qurbonzoda
2023-04-12 23:34:46 +03:00
committed by Space Team
parent 2140580fb1
commit 245ef256bd
2 changed files with 7 additions and 0 deletions
@@ -5,6 +5,7 @@
package kotlin
import kotlin.experimental.ExperimentalNativeApi
import kotlin.native.concurrent.freeze
import kotlin.native.concurrent.isFrozen
import kotlin.native.internal.ExportForCppRuntime
@@ -39,6 +40,8 @@ public open class Throwable(open val message: String?, open val cause: Throwable
* Returns an array of stack trace strings representing the stack trace
* pertaining to this throwable.
*/
// Deprecate this function in favour of KT-57164 when it gets implemented
@ExperimentalNativeApi
public fun getStackTrace(): Array<String> = stackTraceStrings
internal fun getStackTraceAddressesInternal(): List<Long> =
@@ -4,9 +4,13 @@
*/
package kotlin.native
import kotlin.experimental.ExperimentalNativeApi
/**
* Returns a list of stack trace addresses representing the stack trace
* pertaining to this throwable.
*/
// Deprecate this function in favour of KT-57164 when it gets implemented
@ExperimentalNativeApi
public fun Throwable.getStackTraceAddresses(): List<Long> =
this.getStackTraceAddressesInternal()