Skip to content

Fix regression in 0.10.x: fix type for is_detached #1123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

barracuda156
Copy link
Contributor

This fixes regression in 0.10.0, see: #1122
Subsequent segfault still remains, but it also happens with 0.9.0 and 0.8.0.

@andrjohns @bnoordhuis

@@ -374,7 +374,7 @@ typedef struct JSVarRef {
struct {
int __gc_ref_count; /* corresponds to header.ref_count */
uint8_t __gc_mark; /* corresponds to header.mark/gc_obj_type */
bool is_detached;
uint8_t is_detached;
Copy link
Contributor

@bnoordhuis bnoordhuis Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah... do IUC that sizeof(bool) > sizeof(char) on ppc?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bool is 4 bytes in ppc ABI.

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.

2 participants