Add field-logging barrier and field unlog bit (JDK21) - #359
Draft
wks wants to merge 4 commits into
Draft
Conversation
k-sareen
reviewed
Jul 23, 2026
Comment on lines
+210
to
+211
| assert!(!COMPRESSED); | ||
| self.addr |
Collaborator
There was a problem hiding this comment.
I just realized this issue in my branch. I think something like the below is better:
Suggested change
| assert!(!COMPRESSED); | |
| self.addr | |
| if COMPRESSED { | |
| self.untagged_address() | |
| } else { | |
| self.addr | |
| } |
Contributor
Author
There was a problem hiding this comment.
I will eventually do this. Currently the 1 bit per word field unlog bit side metadata doesn't work for compressed pointers, so I want it to fail loud. To support compressed pointers, I will introduce an alternative 1 bit per 32 bit field unlog bit side metadata and give the VM binding the option to select that.
Collaborator
There was a problem hiding this comment.
Ah fair enough. Makes sense. I just found this bug in my branch so I thought it'd be better to make a comment here in case you also have issues with the same in the future.
`ObjectBarrier` -> `GenBarrier`. It is related to generational GC, and can be object or field-grained. `UnlogBit` -> `ObjectUnlogBit`. Added `Object` prefix to prepare for adding field unlog bit barriers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstream PR: mmtk/mmtk-core#1528