Skip to content

Add repr(C) on Object to prevent field reordering#4343

Merged
HalidOdat merged 1 commit intomainfrom
fix/object-repr-c
Jul 18, 2025
Merged

Add repr(C) on Object to prevent field reordering#4343
HalidOdat merged 1 commit intomainfrom
fix/object-repr-c

Conversation

@HalidOdat
Copy link
Member

Without repr(C), the compiler may reorder fields, which can lead to undefined behavior during Gc::cast-ing.

Without repr(C), the compiler may reorder fields, which
can lead to undefined behavior during `Gc::cast`-ing.
@HalidOdat HalidOdat added the A-Internal Changes that don't modify execution behaviour label Jul 17, 2025
@HalidOdat HalidOdat changed the title Add repr(C) on Object to prevent field reordering Add repr(C) on Object to prevent field reordering Jul 17, 2025
@HalidOdat HalidOdat requested a review from a team July 17, 2025 20:49
@github-actions
Copy link

Test262 conformance changes

Test result main count PR count difference
Total 50,595 50,595 0
Passed 47,110 47,110 0
Ignored 2,192 2,192 0
Failed 1,293 1,293 0
Panics 0 0 0
Conformance 93.11% 93.11% 0.00%

@HalidOdat HalidOdat enabled auto-merge July 18, 2025 03:06
@HalidOdat HalidOdat added this pull request to the merge queue Jul 18, 2025
Merged via the queue into main with commit 8e1cfee Jul 18, 2025
16 of 17 checks passed
@HalidOdat HalidOdat deleted the fix/object-repr-c branch July 18, 2025 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Internal Changes that don't modify execution behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants