Skip to content

Move frozen string debug fields into subclass#7903

Merged
headius merged 1 commit intojruby:masterfrom
headius:lighter_debug_frozen_strings
Aug 28, 2023
Merged

Move frozen string debug fields into subclass#7903
headius merged 1 commit intojruby:masterfrom
headius:lighter_debug_frozen_strings

Conversation

@headius
Copy link
Member

@headius headius commented Aug 24, 2023

This avoids adding anything to the ivar table and short-circuits the frozen check. We may want to consider doing this for non-debug frozen literal strings as well.

@headius headius added this to the JRuby 9.4.4.0 milestone Aug 24, 2023
@headius headius force-pushed the lighter_debug_frozen_strings branch from aeb68f6 to 306a16c Compare August 24, 2023 20:39
This avoids adding anything to the ivar table and short-circuits
the frozen check. We may want to consider doing this for non-debug
frozen literal strings as well.

Note: This removes the debug check from "DStr" logic in
BuildCompoundStringInstr because I could find no case where CRuby
attaches debug info to a dynamically-constructed frozen string,
and removing it did not appear to affect any tests.
@headius headius force-pushed the lighter_debug_frozen_strings branch from 306a16c to 11418c3 Compare August 24, 2023 20:46
@headius headius linked an issue Aug 24, 2023 that may be closed by this pull request
@headius headius marked this pull request as ready for review August 24, 2023 20:56
@headius headius merged commit 6fe260d into jruby:master Aug 28, 2023
@headius headius deleted the lighter_debug_frozen_strings branch August 28, 2023 04:48
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.

Marshal.dump with frozen string literals differs on --debug flag

1 participant