Skip to content

Fix crash with -Xjit:disableKnownObjectTable #22062

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 1 commit into from
Jun 10, 2025

Conversation

mpirvu
Copy link
Contributor

@mpirvu mpirvu commented Jun 9, 2025

When -Xjit:disableKnownObjectTable is used the "Known Object Table" will not be created. Code that takes advantage of the "Known Object Table" must specifically test its presence.

When `-Xjit:disableKnownObjectTable` is used the "Known Object
Table" will not be created. Code that takes advantage of the
"Known Object Table" must specifically test its presence.

Signed-off-by: Marius <[email protected]>
@mpirvu mpirvu added the comp:jit label Jun 9, 2025
@mpirvu
Copy link
Contributor Author

mpirvu commented Jun 9, 2025

@jdmpapin Could you please review/merge this small PR? Thanks

@mpirvu
Copy link
Contributor Author

mpirvu commented Jun 9, 2025

jenkins test sanity.functional all jdk21

@jdmpapin
Copy link
Contributor

jdmpapin commented Jun 9, 2025

Was the crash happening at addStableArray()? If so, how did we get knotIndex != TR::KnownObjectTable::UNKNOWN without a known object table?

@mpirvu
Copy link
Contributor Author

mpirvu commented Jun 9, 2025

Was the crash happening at addStableArray()?

There is another KNOT access above at https://github.com/eclipse-openj9/openj9/blob/master/runtime/compiler/optimizer/J9TransformUtil.cpp#L2193

@jdmpapin jdmpapin self-assigned this Jun 9, 2025
@mpirvu
Copy link
Contributor Author

mpirvu commented Jun 10, 2025

Tests have passed. PR is ready to be merged.

@jdmpapin jdmpapin merged commit 0cf42bd into eclipse-openj9:master Jun 10, 2025
19 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.

2 participants