public abstract static class RVMThread.SoftHandshakeVisitor extends Object
During a soft handshake, the requesting thread waits for all mutator threads (i.e. non-gc threads) to perform a requested action.
|Constructor and Description|
|Modifier and Type||Method and Description|
Sets whatever flags need to be set to signal that the given thread should perform some action when it acknowledges the soft handshake.
Checks whether to include the specified thread in the soft handshake.
Called when it is determined that the thread is stuck in native.
public abstract boolean checkAndSignal(RVMThread t)
This method is only called for threads for which
This method is called with the thread's monitor held, but while the thread may still be running. This method is not called on mutators that have indicated that they are about to terminate.
t- the thread that will be processed
falseif not interested in this thread,
truewill cause a soft handshake request to be put through.
public void notifyStuckInNative(RVMThread t)
This implementation does nothing.
t- the thread that's stuck in native
public boolean includeThread(RVMThread t)
This method will never see any threads from the garbage collector because those are excluded from the soft handshake by design.
This implementation always returns
t- The thread to check for inclusion
trueif the thread should be included.