Top Description Fields Constructors Methods
org.graalvm.nativebridge

public final Class NativeIsolateThread

extends Object
Class Inheritance
Imports
java.lang.ref.WeakReference, java.util.concurrent.atomic.AtomicInteger

Represents an entered isolate thread.
See Also
NativeIsolate#enter()

Field Summary

Modifier and TypeField and Description
private static final int
private final AtomicInteger
private boolean
private final NativeIsolate
pack-priv final long
private final boolean
private final WeakReference<Thread>

Constructor Summary

AccessConstructor and Description
pack-priv
NativeIsolateThread(Thread thread, NativeIsolate isolate, boolean nativeThread, long isolateThreadId)

Method Summary

Modifier and TypeMethod and Description
private void
pack-priv boolean
public NativeIsolate
getIsolate()

Returns the isolate for this thread.

public long
getIsolateThreadId()

Returns the isolate thread address.

private boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
public void
leave()

Leaves the NativeIsolate on the current thread.

pack-priv void
setShutDownRequest(boolean shutDown)

private boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CLOSING_MASKback to summary
private static final int CLOSING_MASK
enteredCountback to summary
private final AtomicInteger enteredCount
executesShutDownback to summary
private boolean executesShutDown
isolateback to summary
private final NativeIsolate isolate
isolateThreadback to summary
pack-priv final long isolateThread
nativeThreadback to summary
private final boolean nativeThread
threadback to summary
private final WeakReference<Thread> thread

Constructor Detail

NativeIsolateThreadback to summary
pack-priv NativeIsolateThread(Thread thread, NativeIsolate isolate, boolean nativeThread, long isolateThreadId)

Method Detail

decrementAttachedback to summary
private void decrementAttached()
enterback to summary
pack-priv boolean enter()
getIsolateback to summary
public NativeIsolate getIsolate()

Returns the isolate for this thread.

getIsolateThreadIdback to summary
public long getIsolateThreadId()

Returns the isolate thread address.

Exceptions
IllegalStateException:
when the NativeIsolateThread is no more entered.
incrementAttachedback to summary
private boolean incrementAttached()
invalidateback to summary
pack-priv boolean invalidate()
isActiveback to summary
pack-priv boolean isActive()
isNativeThreadback to summary
pack-priv boolean isNativeThread()
leaveback to summary
public void leave()

Leaves the NativeIsolate on the current thread.

setShutDownRequestback to summary
pack-priv void setShutDownRequest(boolean shutDown)
verifyThreadback to summary
private boolean verifyThread()