forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid re-polling for events when printing error
Dynamically printing error output to the configured stderr stream may trigger additional thread interrupt polls, wiping out any thread interrupt currently being reported or propagated. This patch avoids such polls by writing directly to the underlying IO without using Ruby logic if and only if it is the original (boot) stderr stream. This also removes a second poll that happens when exiting the blocking task for a raise, a side effect of using afterBlockingCall to set the new status. The status update happens again after this point, and the poll is spurious. Fixes jruby#8479
- Loading branch information
Showing
3 changed files
with
94 additions
and
12 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