Skip to content
Permalink
Browse files
[Truffle] Clear the thread interrupted status since the Barrier disli…
…kes it.
  • Loading branch information
eregon committed Jan 15, 2015
1 parent e525e9c commit 0ac35aff460a02bf536ec6dfbba5bc66123d4673
Showing with 3 additions and 0 deletions.
  1. +3 −0 core/src/main/java/org/jruby/truffle/runtime/subsystems/SafepointManager.java
@@ -117,6 +117,9 @@ public synchronized void pauseAllThreadsAndExecuteSignalHandler(final Consumer<R
private void waitOnBarrier() {
final RubyThread runningThread = context.getThreadManager().leaveGlobalLock();

// clear the interrupted status which may have been set by interruptAllThreads().
Thread.interrupted();

try {
waitOnBarrierNoGlobalLock();
} finally {

0 comments on commit 0ac35af

Please sign in to comment.