Skip to content

Commit

Permalink
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -124,21 +124,6 @@ private void step(Node currentNode, boolean isDrivingThread) {
}
}

public void pauseAllThreadsAndExecuteOnOneThread(Node currentNode, boolean deferred, final SafepointAction action) {
final Thread mainThread = Thread.currentThread();

pauseAllThreadsAndExecute(currentNode, deferred, new SafepointAction() {

@Override
public void run(DynamicObject thread, Node currentNode) {
if (Thread.currentThread() == mainThread) {
action.run(thread, currentNode);
}
}

});
}

public void pauseAllThreadsAndExecute(Node currentNode, boolean deferred, SafepointAction action) {
if (lock.isHeldByCurrentThread()) {
throw new IllegalStateException("Re-entered SafepointManager");

0 comments on commit 5596ea0

Please sign in to comment.