Skip to content

cgutils: fix write barrier of atomic-setonce#59991

Merged
vtjnash merged 1 commit intomasterfrom
jn/59883
Nov 1, 2025
Merged

cgutils: fix write barrier of atomic-setonce#59991
vtjnash merged 1 commit intomasterfrom
jn/59883

Conversation

@vtjnash
Copy link
Copy Markdown
Member

@vtjnash vtjnash commented Oct 29, 2025

Thanks to PermutationGroups.jl for dog-fooding our typos! This now matches the runtime implementation in datatype.c (setonce_bits) and ensures that we properly compute the success bit. The test that was intended to check for this is now written to inline that struct and thus actually test for this (undef fields are not eligible for inlining).

Fix #59883

Thanks to PermutationGroups.jl for dog-fooding our typos! This now
matches the runtime implementation in datatype.c (setonce_bits) and
ensures that we properly compute the success bit. The test that was
intended to check for this is now written to inline that struct and thus
actually test for this (undef fields are not eligible for inlining).

Fix #59883
@vtjnash vtjnash added bug Indicates an unexpected problem or unintended behavior backport 1.11 Change should be backported to release-1.11 backport 1.12 Change should be backported to release-1.12 backport 1.13 Change should be backported to release-1.13 labels Oct 29, 2025
@vtjnash vtjnash merged commit c5553c9 into master Nov 1, 2025
9 of 12 checks passed
@vtjnash vtjnash deleted the jn/59883 branch November 1, 2025 02:55
KristofferC pushed a commit that referenced this pull request Nov 5, 2025
Thanks to PermutationGroups.jl for dog-fooding our typos! This now
matches the runtime implementation in datatype.c (setonce_bits) and
ensures that we properly compute the success bit. The test that was
intended to check for this is now written to inline that struct and thus
actually test for this (undef fields are not eligible for inlining).

Fix #59883

(cherry picked from commit c5553c9)
This was referenced Nov 5, 2025
@KristofferC KristofferC mentioned this pull request Nov 24, 2025
22 tasks
KristofferC pushed a commit that referenced this pull request Nov 28, 2025
Thanks to PermutationGroups.jl for dog-fooding our typos! This now
matches the runtime implementation in datatype.c (setonce_bits) and
ensures that we properly compute the success bit. The test that was
intended to check for this is now written to inline that struct and thus
actually test for this (undef fields are not eligible for inlining).

Fix #59883

(cherry picked from commit c5553c9)
@KristofferC KristofferC removed the backport 1.13 Change should be backported to release-1.13 label Nov 28, 2025
@KristofferC KristofferC mentioned this pull request Dec 16, 2025
21 tasks
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Dec 17, 2025
@DilumAluthge DilumAluthge mentioned this pull request Jan 14, 2026
57 tasks
kpamnany pushed a commit to RelationalAI/julia that referenced this pull request Jan 21, 2026
Thanks to PermutationGroups.jl for dog-fooding our typos! This now
matches the runtime implementation in datatype.c (setonce_bits) and
ensures that we properly compute the success bit. The test that was
intended to check for this is now written to inline that struct and thus
actually test for this (undef fields are not eligible for inlining).

Fix JuliaLang#59883

(cherry picked from commit c5553c9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.11 Change should be backported to release-1.11 bug Indicates an unexpected problem or unintended behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression in 1.12: random crashes with @atomic or @atomiconce

2 participants