FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Small marshal fixes by headius · Pull Request #9156 · jruby/jruby · GitHub

/ jruby Public

Small marshal fixes - #9156

Merged
headius merged 4 commits into
jruby:10.1-devfrom
headius:marshal_fixes
Jan 7, 2026
Merged

Small marshal fixes#9156
headius merged 4 commits into
jruby:10.1-devfrom
headius:marshal_fixes

Conversation

headius commented Jan 6, 2026
edited
Loading

Copy link
Copy Markdown
Member

Small fixes for Marshal logic encountered while investigating #9152.

  • Avoid double lookup of link values during dump (performance).
  • Use smaller link map.
  • Skip linkability check for callers that are automatically linkable.
  • Avoid constructing Bignum object to marshal large fixnums.

headius force-pushed the marshal_fixes branch 2 times, most recently from d3912e0 to 134c0d8 Compare January 6, 2026 09:10
headius changed the base branch from master to 10.1-dev January 7, 2026 18:06
headius added this to the JRuby 10.1.0.0 milestone Jan 7, 2026
The previous logic checked if the link was present, and if so it
proceeded to look it up again to get the link value. This saves a
hash lookup per linked object in the dump stream.
All callers of this method are already linkable objects (i.e. not
nil, boolean, or in CRuby fixnum range) so there's no need for the
repeated checks in registerLinkTarget. The new registerObject
retains those checks as an assert but otherwise assumes caller is
doing the right thing.
headius marked this pull request as ready for review January 7, 2026 19:29
headius merged commit 0b2fc30 into jruby:10.1-dev Jan 7, 2026
75 of 76 checks passed
headius deleted the marshal_fixes branch January 7, 2026 19:48
This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL