forked from jruby/jruby
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multiple adjustments to the Exception and raise logic.
* Request backtrace from exception object before raise, so that pre-set backtrace or overridden #backtrace skip native trace gathering. * Eliminate some redundant or unused backtrace-gathering methods. * Fix Kernel#warn uplevel logic to use partial traces (Java 9). The fixes here allow two additional ways of blunting the cost of raising an exception (by eliminating the native stack trace): * Call Exception#set_backtrace before raising * Use an Exception subtype that overrides Exception#backtrace This improves the performance of these scenarios to be roughly equivalent to the three-arg form of Kernel#raise. Fixes jruby#5605.
- Loading branch information
Showing
10 changed files
with
139 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.