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

Clean Up VM Access in J9SymbolReferenceTable.cpp #20439

Merged

Conversation

luke-li-2003
Copy link
Contributor

Clean up the redundant VM Access critical section before getObjectClassAt(), since TR_J9VMBase::getObjectClassAt() will acquire/release VM Access internally, and
TR_J9ServerVM::getObjectClassAt() will query the client instead.

Clean up the redundant VM Access critical section before
getObjectClassAt(), since TR_J9VMBase::getObjectClassAt() will
acquire/release VM Access internally, and
TR_J9ServerVM::getObjectClassAt() will query the client instead.

Signed-off-by: Luke Li <[email protected]>
@luke-li-2003
Copy link
Contributor Author

@mpirvu can you review this?

@mpirvu mpirvu self-assigned this Oct 30, 2024
Copy link
Contributor

@mpirvu mpirvu left a comment

Choose a reason for hiding this comment

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

The critical section is larger than the one line you showed me on slack. Having said that, I don't see what we are trying to protect, except for that comp()->fej9()->getObjectClassAt((uintptr_t)stringConst); line. So the change looks good to me.

@mpirvu
Copy link
Contributor

mpirvu commented Oct 30, 2024

@jdmpapin Could you please review this PR as well? Thanks

@mpirvu
Copy link
Contributor

mpirvu commented Oct 31, 2024

jenkins test sanity all jdk21

@mpirvu
Copy link
Contributor

mpirvu commented Nov 1, 2024

plinux had a crash in jdk_lang_0. I started a 5 iteration grinder here: https://openj9-jenkins.osuosl.org/job/Grinder/3939/
aix had a sanity.functional failure in testSCCMLTests1_openj9_1 "Add ROM classes to the existing shared cache with line numbers by using mprotect=all". Grinder here: https://openj9-jenkins.osuosl.org/job/Grinder/3941/

@mpirvu
Copy link
Contributor

mpirvu commented Nov 1, 2024

Grinders passed, so I am going to merge this PR.

@mpirvu mpirvu merged commit 64b29d5 into eclipse-openj9:master Nov 1, 2024
24 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants