Skip to content

Update to mmtk-core PR#647 #178

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

Merged
merged 3 commits into from
Sep 13, 2022
Merged

Update to mmtk-core PR#647 #178

merged 3 commits into from
Sep 13, 2022

Conversation

qinsoon
Copy link
Member

@qinsoon qinsoon commented Sep 7, 2022

This PR updates mmtk-core to mmtk/mmtk-core#647.

@qinsoon qinsoon marked this pull request as ready for review September 8, 2022 00:07
@qinsoon qinsoon requested a review from wks September 8, 2022 00:07
Copy link
Contributor

@wks wks 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 added a commit to mmtk/mmtk-core that referenced this pull request Sep 13, 2022
This PR refactors metadata, and makes all its access associated with a num type. This PR also greatly reduces code duplication in the metadata module, and adds tests for both header metadata and side metadata access.

Metadata in the following context refers to both side metadata and header metadata.
* All metadata access functions are moved to `HeaderMetadata`/`SideMetadata` as methods.
* Introduce the `MetadataValue` trait so we can handle `u8/16/32/64/size` uniformly.
* All metadata access methods needs a number type for the get/set value type. It needs to match what is defined in the spec, otherwise it will panic.
* Fixe the issue for `u64` metadata on 32 bits. It should work properly now.
* Add unit tests.
* Header metadata methods in `ObjectModel` now have a default implementation that uses our header metadata module.

Related PRs:
* mmtk/mmtk-openjdk#178
* mmtk/mmtk-jikesrvm#122
* mmtk/mmtk-v8#67
@qinsoon qinsoon merged commit efcae2f into mmtk:master Sep 13, 2022
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