Skip to content

Merge release/1.13@1.13.2#14924

Merged
straight-shoota merged 5 commits intomasterfrom
release/1.13
Aug 21, 2024
Merged

Merge release/1.13@1.13.2#14924
straight-shoota merged 5 commits intomasterfrom
release/1.13

Conversation

@straight-shoota
Copy link
Member

No description provided.

HertzDevil and others added 5 commits August 20, 2024 08:48
It turns out the fix in #14730 made all `ReferenceStorage` objects non-atomic; `Crystal::ReferenceStorageType#reference_type` returns a reference type, whose `#has_inner_pointers?` always returns true since the reference itself is a pointer.
This PR fixes that again by adding a special case for `ReferenceStorage`.
The code path for `Nil` looks similar, but it is perfectly fine: it directly stores `[8 x i64] zeroinitializer` to the data field, whose default alignment naturally matches.
@straight-shoota straight-shoota merged commit 4570027 into master Aug 21, 2024
@straight-shoota straight-shoota added this to the 1.14.0 milestone Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants