-
Notifications
You must be signed in to change notification settings - Fork 69
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
Discontiguous MarkCompactSpace support #930
Comments
If I read the code of MonotonicPageResource correctly, it chains up all the "contiguous chunks" in a doubly linked list, with |
Yeah I'll try to use this to fix it. I did this on Java MMTk before. |
This PR adds discontiguous heap support for mark compact GC, and rewrites the forwarding pointer calculation and compaction code to be compactable to both contiguous and discontiguous spaces. Fixes #930
Currently, the MarkComapctSpace relies on
self.common.start
, which is only set for contiguous spaces: https://github.com/mmtk/mmtk-core/blob/master/src/policy/markcompactspace.rs#L322This brings an implicit assumption that the MarkCompactSpace can work correctly only when being configured as contiguous. Although it's constructor actually supports discontiguous layout https://github.com/mmtk/mmtk-core/blob/master/src/policy/markcompactspace.rs#L202-L206.
This is a blocker for the openjdk compressed oops support, as it will enable discontiguous MarkCompactSpace for MarkCompact plan.
The text was updated successfully, but these errors were encountered: