[K/N] Mark Throwable.getStackTrace[Addresses] with ExperimentalNativeApi
As a part of efforts to stabilize Native stdlib #KT-55765.
This commit is contained in:
committed by
Space Team
parent
2140580fb1
commit
245ef256bd
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
package kotlin
|
package kotlin
|
||||||
|
|
||||||
|
import kotlin.experimental.ExperimentalNativeApi
|
||||||
import kotlin.native.concurrent.freeze
|
import kotlin.native.concurrent.freeze
|
||||||
import kotlin.native.concurrent.isFrozen
|
import kotlin.native.concurrent.isFrozen
|
||||||
import kotlin.native.internal.ExportForCppRuntime
|
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
|
* Returns an array of stack trace strings representing the stack trace
|
||||||
* pertaining to this throwable.
|
* pertaining to this throwable.
|
||||||
*/
|
*/
|
||||||
|
// Deprecate this function in favour of KT-57164 when it gets implemented
|
||||||
|
@ExperimentalNativeApi
|
||||||
public fun getStackTrace(): Array<String> = stackTraceStrings
|
public fun getStackTrace(): Array<String> = stackTraceStrings
|
||||||
|
|
||||||
internal fun getStackTraceAddressesInternal(): List<Long> =
|
internal fun getStackTraceAddressesInternal(): List<Long> =
|
||||||
|
|||||||
@@ -4,9 +4,13 @@
|
|||||||
*/
|
*/
|
||||||
package kotlin.native
|
package kotlin.native
|
||||||
|
|
||||||
|
import kotlin.experimental.ExperimentalNativeApi
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of stack trace addresses representing the stack trace
|
* Returns a list of stack trace addresses representing the stack trace
|
||||||
* pertaining to this throwable.
|
* pertaining to this throwable.
|
||||||
*/
|
*/
|
||||||
|
// Deprecate this function in favour of KT-57164 when it gets implemented
|
||||||
|
@ExperimentalNativeApi
|
||||||
public fun Throwable.getStackTraceAddresses(): List<Long> =
|
public fun Throwable.getStackTraceAddresses(): List<Long> =
|
||||||
this.getStackTraceAddressesInternal()
|
this.getStackTraceAddressesInternal()
|
||||||
|
|||||||
Reference in New Issue
Block a user