Skip to content

(0.54) Guard peeking behaviour for invokedynamic/handle with an env option #22290

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

Conversation

nbhuiyan
Copy link
Member

@nbhuiyan nbhuiyan commented Jul 23, 2025

Double-delivering #22284 and #22295 for 0.54.

Issue: #22256

@nbhuiyan
Copy link
Member Author

@0xdaryl Requesting review

@0xdaryl 0xdaryl self-assigned this Jul 23, 2025
@keithc-ca
Copy link
Contributor

eclipse-omr/omr#7320 (comment) should be addressed before this is merged.

Copy link
Contributor

@keithc-ca keithc-ca left a comment

Choose a reason for hiding this comment

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

This won't compile on all platforms, e.g. z/OS where it complains:

[2025-07-23T18:57:31.713Z] "/jenkins/workspace/Build_JDK21_s390x_zos_Personal@2/openj9/runtime/compiler/optimizer/J9EstimateCodeSize.cpp", line 992.10: CCN5246 (S) The "case" statement bypasses the initialization of "const bool enablePeekingForMHInvokes".

@nbhuiyan nbhuiyan marked this pull request as draft July 23, 2025 20:35
@nbhuiyan
Copy link
Member Author

In draft state until changes from #22295 are included here upon review + merge of that PR.

@nbhuiyan nbhuiyan marked this pull request as ready for review July 24, 2025 14:21
@keithc-ca
Copy link
Contributor

I think this should be squashed: we don't need to repeat the misstep that occurred in the master branch.

This commit disables peeking ILGen due to presence of invokedynamic
or invokehandle bytecodes. This is meant to be a temporary measure
until DDR test failures caused with such peeking ILGen can be
investigated and fixed. Peeking ILGen for non-root methods
containing invokedynamic/invokehandle bytecodes would now have
to be enabled using the option TR_enablePeekingForMHInvokes.

Signed-off-by: Nazim Bhuiyan <[email protected]>
@nbhuiyan nbhuiyan force-pushed the guard-nph-mhinvoke-0.54 branch from 67143e7 to e838fe7 Compare July 24, 2025 14:30
@pshipton
Copy link
Member

@keithc-ca is this good to merge now?

@pshipton pshipton merged commit 51f0d4b into eclipse-openj9:v0.54.0-release Jul 24, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants