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

Fix romclass comparison and J9Class lookup given a romclass #19833

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

hangshao0
Copy link
Contributor

  1. The romclass comparsion should include the ROM_CLASS_MODIFIERS.
  2. For a ROMClass from SCC, its rom memory segment always belongs to the bootstrap class loader. But the class might not be actually loaded by the bootstrap loader. Search all live class loaders to find its defining class loader and the corresponding J9Class.

Fixes #19781

@pshipton
Copy link
Member

pshipton commented Jul 9, 2024

What testing has already been run?

@hangshao0
Copy link
Contributor Author

What testing has already been run?

I have run jsr292Test_0 and StackWalkerTest_0 with SCC and AOT enabled.

@pshipton
Copy link
Member

pshipton commented Jul 9, 2024

jenkins test sanity,extended,sanity.openjdk,sanity.system,extended.system amac jdk11

@pshipton
Copy link
Member

pshipton commented Jul 9, 2024

@hangshao0 hangshao0 force-pushed the FixSCC branch 2 times, most recently from cee711c to 6472d14 Compare July 10, 2024 14:45
@hangshao0
Copy link
Contributor Author

Internal JDK11 sanity.openjdk personal build on aarch64_mac passed with the current change.

This can be reviewed again.

1. The romclass comparsion should include the ROM_CLASS_MODIFIERS.
2. For a ROMClass from SCC, its rom memory segment always belongs to the
bootstrap class loader. But the class might not be actually loaded by
the bootstrap loader. Search all live class loaders to find its defining
class loader and the corresponding J9Class.

Fixes eclipse-openj9#19781

Signed-off-by: Hang Shao <hangshao@ca.ibm.com>
@pshipton
Copy link
Member

jenkins test sanity,extended,sanity.openjdk,sanity.system,extended.system amac jdk11

@pshipton pshipton merged commit d400c62 into eclipse-openj9:master Jul 10, 2024
9 checks passed
hangshao0 added a commit to hangshao0/openj9 that referenced this pull request Jul 11, 2024
related to eclipse-openj9#19833

Signed-off-by: Hang Shao <hangshao@ca.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants