Skip to content

Commit

Permalink
[Truffle] Clear the thread interrupted status since the Barrier disli…
Browse files Browse the repository at this point in the history
…kes it.
  • Loading branch information
eregon committed Jan 15, 2015
1 parent e525e9c commit 0ac35af
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0ac35af

Please sign in to comment.