Commit 20632af
committed
Fix RubyThread.join to set "$!" in the calling thread when the target
thread exits with an exception. This lets us gets rid of a hack in both
AST and IR interpreters where on catching an exception, "$!" is set
before passing control to the rescue handlers. This in turn makes the
exception handlers in IR interpreter loop identical for a couple
scenarios which can then let us compact exception tables for the IR JIT.1 parent c762de9 commit 20632af
File tree
3 files changed
+12
-11
lines changed- src/org/jruby
- ast
- ir/interpreter
3 files changed
+12
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| 615 | + | |
| 616 | + | |
615 | 617 | | |
616 | 618 | | |
617 | 619 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | 173 | | |
179 | 174 | | |
180 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| |||
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | 623 | | |
629 | 624 | | |
630 | 625 | | |
| |||
660 | 655 | | |
661 | 656 | | |
662 | 657 | | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
663 | 667 | | |
664 | 668 | | |
665 | 669 | | |
| |||
0 commit comments