forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do lazy instruction deserialization against dup'ed reader
Instruction reading is done lazily to avoid the cost of deserializing method bodies that will never be called. However the buffer associated with the original file was being shared across all of these lazy deserializations, causing concurrency issues. This patch modifies the lazy deserialization lambda to operate against a duplicate of the original reader, isolating its changes in a separate buffer and avoiding the concurrency issues. Fixes jruby#6210
- Loading branch information
Showing
3 changed files
with
24 additions
and
8 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