-
Notifications
You must be signed in to change notification settings - Fork 733
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
Support -XX:[+/-]ShowHiddenFrames option #3627
Conversation
f731ee1
to
a5a7b08
Compare
@tajila can you take a look? |
a5a7b08
to
46e5528
Compare
Senior review : @DanHeidinga please take a look |
46e5528
to
56b0038
Compare
@DanHeidinga can I get a re-review please? |
b04e059
to
58b43cb
Compare
Any update on this @fengxue-IS? |
@DanHeidinga Can you take a look at this please |
Can one of the admins verify this patch? |
@fengxue-IS Can you please rebase this PR with the latest changes |
@DanHeidinga did you have any objections to these changes? We have noticed some JDK18 tests that require this behaviour |
01aa5eb
to
b115a21
Compare
@tajila Can you please take a look. Few points to note:
We could also continue with the old approach by building a new iterator for the first pass of |
all versions
I think we should try to match the RI as much as possible
Yes, lets handle this in a uniform manner |
@tajila can you please take another look? Locally tested on my VM that tests below passed:
|
@gacholio please review these changes |
Was our behaviour incorrect before (assuming the option defaults to off)? |
OpenJ9 by default doesn't skip hidden frames, though behavior in terms of handling hidden frames is unspecified, the reason for this change is due to many OJDK tests depends on this behavior so we are matching the RI's behavior |
For consistency, please add the print to the start of the stack walker for the new flag bit. |
And please squash the commits once that change is made. |
- remove J9_RUNTIME_AOT_STRIPPED/J9_RUNTIME_ARRGESSIVE_VERIFICATON - remove flag J9_RUNTIME_DFPBD and linked code Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
e569f65
to
70b44ef
Compare
- Added new VM option for -XX:[+/-]ShowHiddenFrames - Added new VM runtime flag J9_RUNTIME_SHOW_HIDDEN_FRAMES for new option - Add J9_STACKWALK_SKIP_HIDDEN_FRAMES stack walk flag - Add check to skip hidden frames during walkFrame() call - Add new flag to all fillInStackTrace implementations - Add check to getStackTraceForThread - Update StackWalker to use new J9_STACKWALK_SKIP_HIDDEN_FRAMES flag Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
70b44ef
to
18375dd
Compare
fixed all review comments as suggested, re-compiled locally and passed JTreg test associated. |
jenkins test sanity zlinux jdk17 |
eclipse-openj9/openj9#3627 Fixed: - eclipse-openj9/openj9#14132 - eclipse-openj9/openj9#3394 - eclipse-openj9/openj9#14084 (Also depends on ibmruntimes/openj9-openjdk-jdk18#12) Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
eclipse-openj9/openj9#3627 Fixed: - eclipse-openj9/openj9#14132 - eclipse-openj9/openj9#3394 - eclipse-openj9/openj9#14084 (Also depends on ibmruntimes/openj9-openjdk-jdk18#12) Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
@fengxue-IS please create a https://github.com/eclipse-openj9/openj9-docs issue and PR to update the user guide. The new option also needs to be mentioned in the OpenJ9 release notes. https://github.com/eclipse-openj9/openj9/blob/master/doc/release-notes/0.31/0.31.md |
eclipse-openj9/openj9#3627 Fixed: - eclipse-openj9/openj9#14132 - eclipse-openj9/openj9#3394 - eclipse-openj9/openj9#14084 (Also depends on ibmruntimes/openj9-openjdk-jdk18#12) Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
Fixes: #3394, Fixes: #14132
Signed-off-by: Jack Lu Jack.S.Lu@ibm.com