Repository navigation
Freeze Grape's constants all the way down - #3095
Merged
Merged
Conversation
ericproulx
force-pushed
the
refactor/ractor-shareable-internals
branch
2 times, most recently
from
November 21, 2026 17:05
a768473 to
5448634
Compare
This was referenced Nov 21, 2026
ericproulx
force-pushed
the
refactor/ractor-shareable-internals
branch
from
November 21, 2026 17:16
5448634 to
07d0ada
Compare
A non-main Ractor reads a constant only when its value is frozen all the way down. SPECIAL_JSON, Types::SPECIAL and Types::GROUPS held Array[JSON], an unfrozen Array; MESSAGE_STEPS held unfrozen Strings; DELETED_COOKIES_ATTRS held a Time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ericproulx
force-pushed
the
refactor/ractor-shareable-internals
branch
from
November 21, 2026 17:23
07d0ada to
7eef4da
Compare
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of making Grape's internals readable from a non-main Ractor, without calling the
RactorAPI fromlib/, as groundwork for Ractor mode (#2978). Split from the first version of this PR, with the rest in #3096, #3097 and #3098.A non-main Ractor reads a constant only when its value is frozen all the way down. These were frozen on the outside only:
Validations::ParamsScope::SPECIAL_JSONArray[JSON], an unfrozen Arraygivenandmutually_exclusiveraisedValidations::Types::SPECIAL,Types::GROUPSExceptions::Base::MESSAGE_STEPSCookies::DELETED_COOKIES_ATTRSTimecookies.deleteraisedDryTypes::StrictCache::MAPPINGandParamsCache::MAPPINGstay as they are: they hold dry-types' own objects, and only building a coercer reads them.🤖 Generated with Claude Code