Skip to content
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

Don't panic if forwarding word is not FORWARDED and add debug assertions #580

Merged
merged 3 commits into from
May 5, 2022

Conversation

k-sareen
Copy link
Collaborator

Some policies (such as Immix) can leave objects inplace and can reset
the forwarding word while tracing (such as when Immix is out of space in
its copy allocators). In such a case, we simply want to return the
current object instead of attempting to read the forwarding pointer.
This commit removes our faulty assumption and assertion and adds further
debug assertions for a sanity check.

Closes #579

Some policies (such as Immix) can leave objects inplace and can reset
the forwarding word while tracing (such as when Immix is out of space in
its copy allocators). In such a case, we simply want to return the
current object instead of attempting to read the forwarding pointer.
This commit removes our faulty assumption and assertion and adds further
debug assertions for a sanity check.

Closes mmtk#579
@k-sareen k-sareen requested review from wenyuzhao and qinsoon April 29, 2022 07:33
Copy link
Member

@qinsoon qinsoon left a comment

Choose a reason for hiding this comment

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

LGTM

@qinsoon qinsoon added the PR-testing Run binding tests for the pull request (deprecated: use PR-extended-testing instead) label Apr 29, 2022
@k-sareen
Copy link
Collaborator Author

Seems like the test timed out? Hmm. That's bizarre.

@qinsoon
Copy link
Member

qinsoon commented Apr 30, 2022

I think that's because of the new weak reference tests, which makes it run longer. I will create a pull request to allow a longer timeout for the tests.

@qinsoon qinsoon merged commit 3dbdd7a into mmtk:master May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-testing Run binding tests for the pull request (deprecated: use PR-extended-testing instead)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spin_and_get_forwarded_object() should not panic when forwarding word is not FORWARDED
3 participants