-
Notifications
You must be signed in to change notification settings - Fork 722
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
Add explicit well-known classes SCC handling #18888
Add explicit well-known classes SCC handling #18888
Conversation
Attn @mpirvu. |
In #18301 I think I will simply modify |
6014165
to
f2db886
Compare
Rebased to bring in the latest merges. Shouldn't have changed anything. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I have some small comments inline.
f2db886
to
f1ad8b2
Compare
Force-pushed to address comments. |
f1ad8b2
to
54da75f
Compare
* (uintptr_t *classChainOffsets) value whose first element is the number of subsequent elements, | ||
* with subsequent elements being offsets to class chains. | ||
* | ||
* \param[in] vmThread The buffer to fill with the SCC key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The definition of vmThread was copied from below and it's incorrect
* @brief Same circumstance as offsetinSharedCacheFromClass above. | ||
* | ||
* @param sharedCache pointer to the TR_SharedCache object | ||
* @param ptr well-known classes pointer whose offset in the SCC is required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ptr --> wellKnownClassesPtr
54da75f
to
dbd1b80
Compare
A new storeWellKnownClasses method in J9SharedCache is now responsible for storing a well-known classes object in the SCC. The J9::AheadOfTimeCompile::offsetInSharedCacheFromPointer has been renamed offsetInSharedCacheFromWellKnownClasses, as getting the offset of the well-known classes object stored in the SVM is currently its sole responsibility. Signed-off-by: Christian Despres <[email protected]>
dbd1b80
to
6eb3635
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
jenkins test sanity all jdk21 |
aix build failed due to infra: |
jenkins test sanity aix jdk21 |
A new storeWellKnownClasses method in J9SharedCache is now responsible for storing a well-known classes object in the SCC.
The J9::AheadOfTimeCompile::offsetInSharedCacheFromPointer has been renamed offsetInSharedCacheFromWellKnownClasses, as getting the offset of the well-known classes object stored in the SVM is currently its sole responsibility.