localIntoGlobalRef

context(env: JniEnv)
fun <T : JRef<O>, O : _jobject> T.localIntoGlobalRef(): T?(source)

Converts ordinal local ref into a global one.

May return null if:

  • the system has run out of memory

  • the receiver was a weak global reference and has already been garbage collected.

Throws

if the system runs out of memory.