Skip to content

runtime fix#39

Open
ancavar wants to merge 2 commits into
PLTools:1.30from
ancavar:gc-fix
Open

runtime fix#39
ancavar wants to merge 2 commits into
PLTools:1.30from
ancavar:gc-fix

Conversation

@ancavar
Copy link
Copy Markdown
Contributor

@ancavar ancavar commented May 12, 2026

Comment thread runtime/gc.c
heap_next_obj_iterator(&it);
}
// fix pointers from stack
scan_and_fix_region(old_heap, (void *)__gc_stack_top + sizeof(size_t), (void *)__gc_stack_bottom + sizeof(size_t));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why do we need to skip a word from __gc_stack_bottom?

Copy link
Copy Markdown
Contributor Author

@ancavar ancavar May 12, 2026

Choose a reason for hiding this comment

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

I thought __gc_stack_bottom is meant to be exclusive? e.g.

for (size_t *p = (size_t *)(__gc_stack_top + sizeof(size_t)); p < (size_t *)__gc_stack_bottom; ++p) {

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