Skip to content

Commit 48d49c5

Browse files
committed
Rethrow uncaughtException when joining a Fiber
1 parent 237ab7c commit 48d49c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/org/truffleruby/core/fiber/FiberManager.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,11 @@ private void doKillOtherFibers() {
350350
finishedLatch.await();
351351
return BlockingAction.SUCCESS;
352352
});
353+
354+
final Throwable uncaughtException = fiber.uncaughtException;
355+
if (uncaughtException != null) {
356+
ExceptionOperations.rethrow(uncaughtException);
357+
}
353358
}
354359
}
355360
}

0 commit comments

Comments
 (0)