APIdia Launch Partner
Top Description Inners Fields Constructors Methods
jdk.internal.foreign

pack-priv final Class ConfinedSession

extends MemorySessionImpl
Class Inheritance
Imports
jdk.internal.invoke.MhUtil, jdk.internal.vm.annotation.ForceInline, java.lang.invoke.MethodHandles, .VarHandle

A confined session, which features an owner thread. The liveness check features an additional confinement check - that is, calling any operation on this session from a thread other than the owner thread will result in an exception. Because of this restriction, checking the liveness bit can be performed in plain mode.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
ConfinedSession.ConfinedResourceList

A confined resource list; no races are possible here.

Field Summary

Modifier and TypeField and Description
pack-priv static final VarHandle
private int
Inherited from jdk.internal.foreign.MemorySessionImpl:
ACQUIRE_COUNTacquireCountALREADY_CLOSEDCLOSEDGLOBAL_SESSIONMAX_FORKSNONCLOSEABLEOPENownerresourceListSTATEstateWRONG_THREAD

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
pack-priv void
public void
Inherited from jdk.internal.foreign.MemorySessionImpl:
addCloseActionaddInternaladdOrCleanupIfFailalreadyAcquiredalreadyClosedasArenacheckValidStatecheckValidStatecheckValidStateRawcloneclosecreateConfinedcreateHeapcreateImplicitcreateSharedisAccessibleByisAliveisCloseableisCloseableBynonCloseableownerThreadtoMemorySessiontooManyAcquireswhileAlivewrongThread

Field Detail

ASYNC_RELEASE_COUNTback to summary
pack-priv static final VarHandle ASYNC_RELEASE_COUNT
asyncReleaseCountback to summary
private int asyncReleaseCount

Constructor Detail

ConfinedSessionback to summary
public ConfinedSession(Thread owner)

Method Detail

acquire0back to summary
public void acquire0()

Implements abstract jdk.internal.foreign.MemorySessionImpl.acquire0.

Annotations
@Override
@ForceInline
justCloseback to summary
pack-priv void justClose()

Implements abstract jdk.internal.foreign.MemorySessionImpl.justClose.

release0back to summary
public void release0()

Implements abstract jdk.internal.foreign.MemorySessionImpl.release0.

Annotations
@Override
@ForceInline
jdk.internal.foreign back to summary

pack-priv final Class ConfinedSession.ConfinedResourceList

extends ResourceList
Class Inheritance

A confined resource list; no races are possible here.

Field Summary

Modifier and TypeField and Description
pack-priv MemorySessionImpl.ResourceList.ResourceCleanup
Inherited from jdk.internal.foreign.MemorySessionImpl.ResourceList:
fst

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
Inherited from jdk.internal.foreign.MemorySessionImpl.ResourceList:
cleanupcleanupcleanupSinglerun

Field Detail

cacheback to summary
pack-priv MemorySessionImpl.ResourceList.ResourceCleanup cache

Constructor Detail

ConfinedResourceListback to summary
pack-priv ConfinedResourceList()

Method Detail

addback to summary
pack-priv void add(MemorySessionImpl.ResourceList.ResourceCleanup cleanup)

Implements abstract jdk.internal.foreign.MemorySessionImpl.ResourceList.add.

Annotations
@Override
cleanupback to summary
pack-priv void cleanup()

Implements abstract jdk.internal.foreign.MemorySessionImpl.ResourceList.cleanup.

Annotations
@Override