Search in sources :

Example 1 with VMMutex

use of com.oracle.svm.core.locks.VMMutex in project graal by oracle.

the class VMOperationControlFeature method releaseLock.

private void releaseLock() {
    final Log trace = SubstrateOptions.TraceVMOperations.getValue() ? Log.log() : Log.noopLog();
    trace.string("[VMOperationControl.releaseLock: ").newline();
    final VMMutex lock = getLock();
    lock.assertIsLocked("VMOperationControl.releaseLock but not locked.");
    unsetLockOwner();
    lock.unlock();
    trace.string("  isOwner: ").bool(isLockOwner()).string("]").newline();
}
Also used : Log(com.oracle.svm.core.log.Log) VMMutex(com.oracle.svm.core.locks.VMMutex)

Aggregations

VMMutex (com.oracle.svm.core.locks.VMMutex)1 Log (com.oracle.svm.core.log.Log)1