Skip to content

size_t for gc globals - #1393

Merged
Aidan63 merged 2 commits into
HaxeFoundation:masterfrom
Aidan63:size_t_globals
Sep 10, 2026
Merged

Aidan63 merged 2 commits into
HaxeFoundation:masterfrom
Aidan63:size_t_globals

Conversation

@Aidan63

@Aidan63 Aidan63 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

This updates those global sg variables to be size_t. I think looking at switching QuickVec to being size_t based will be the thing to tackle next as there's lots of questionable implicit conversions going on with size and the likes.

Comment thread src/hx/gc/Immix.cpp

static bool sgAllocInit = 0;
static bool sgInternalEnable = true;
static void *sgObject_root = 0;

@tobil4sk tobil4sk Sep 9, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just to verify this removal, it seems this variable has been unused since: f7d27a4

Comment thread src/hx/gc/Immix.cpp Outdated
void **stack = *(void ***)(&tmp);
sgObject_root = stack[0];

//GCLOG("__root pointer %p\n", sgObject_root);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We can get rid of this commented out log now, since sgObject_root is gone

@Aidan63
Aidan63 merged commit e4dc001 into HaxeFoundation:master Sep 10, 2026
145 checks passed
@Aidan63
Aidan63 deleted the size_t_globals branch September 10, 2026 08:57
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