Skip to content

Compacting GC: get object size before threading fields#2622

Merged
mergify[bot] merged 2 commits intomasterfrom
osa1/mark_compact_bug
Jun 23, 2021
Merged

Compacting GC: get object size before threading fields#2622
mergify[bot] merged 2 commits intomasterfrom
osa1/mark_compact_bug

Conversation

@osa1
Copy link
Contributor

@osa1 osa1 commented Jun 23, 2021

This fixes a bug when an object refers to itself. If we thread the
fields first, by the time we get the object's size the header will be
gone. So we need to get the size first, then thread the fields.

Bug caught by #2573 and a test will be added with that PR.

This fixes a bug when an object refers to itself. If we thread the
fields first, by the time we get the object's size the header will be
gone. So we need to get the size first, then thread the fields.

Bug caught by #2573 and a test will be added with that PR.
@osa1 osa1 requested a review from crusso June 23, 2021 13:23
@dfinity-ci
Copy link

This PR does not affect the produced WebAssembly code.

@osa1 osa1 added the automerge-squash When ready, merge (using squash) label Jun 23, 2021
@mergify mergify bot merged commit 000fe75 into master Jun 23, 2021
@mergify mergify bot deleted the osa1/mark_compact_bug branch June 23, 2021 13:46
@mergify mergify bot removed the automerge-squash When ready, merge (using squash) label Jun 23, 2021
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.

3 participants

Comments