public final class PthreadVMLockSupport extends VMLockSupport
VMLockSupport.DumpVMMutexes| Modifier and Type | Field and Description |
|---|---|
protected com.oracle.svm.core.posix.pthread.PthreadVMCondition[] |
conditions
All conditions, so that we can initialize them at run time when the VM starts.
|
protected com.oracle.svm.core.posix.pthread.PthreadVMMutex[] |
mutexes
All mutexes, so that we can initialize them at run time when the VM starts.
|
protected byte[] |
pthreadStructs
Raw memory for the pthread lock structures.
|
| Constructor and Description |
|---|
PthreadVMLockSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkResult(int result,
String functionName) |
com.oracle.svm.core.posix.pthread.PthreadVMCondition[] |
getConditions()
Returns an array that contains all
VMCondition objects that are present in the image
or null if that information is not available. |
com.oracle.svm.core.posix.pthread.PthreadVMMutex[] |
getMutexes()
Returns an array that contains all
VMMutex objects that are present in the image or
null if that information is not available. |
static boolean |
initialize()
Must be called once early during startup, before any mutex or condition is used.
|
static PthreadVMLockSupport |
singleton() |
protected com.oracle.svm.core.posix.pthread.PthreadVMMutex[] mutexes
protected com.oracle.svm.core.posix.pthread.PthreadVMCondition[] conditions
protected byte[] pthreadStructs
PthreadVMMutex.structOffset and
PthreadVMCondition.structOffset.public static PthreadVMLockSupport singleton()
public static boolean initialize()
protected static void checkResult(int result,
String functionName)
public com.oracle.svm.core.posix.pthread.PthreadVMMutex[] getMutexes()
VMLockSupportVMMutex objects that are present in the image or
null if that information is not available.getMutexes in class VMLockSupportpublic com.oracle.svm.core.posix.pthread.PthreadVMCondition[] getConditions()
VMLockSupportVMCondition objects that are present in the image
or null if that information is not available.getConditions in class VMLockSupport