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

StackWalker updates for Java 22 #18145

Merged
merged 1 commit into from Sep 15, 2023
Merged

Conversation

keithc-ca
Copy link
Contributor

  • add StackWalker.Option.DROP_METHOD_INFO
  • add stub for JVM_ExpandStackFrameInfo()
  • update signatures of JVM_CallStackWalk() and JVM_MoreStackWalk()

Various general improvements to StackWalker:

  • make all fields final
  • don't retain Set<Option> (all needed information is in flags)
  • add newInstanceWithMonitors() for use by PinnedThreadPrinter

Fixes #18100.

* add StackWalker.Option.DROP_METHOD_INFO
* add stub for JVM_ExpandStackFrameInfo()
* update signatures of JVM_CallStackWalk() and JVM_MoreStackWalk()

Various general improvements to StackWalker:
* make all fields final
* don't retain Set<Option> (all needed information is in flags)
* add newInstanceWithMonitors() for use by PinnedThreadPrinter

Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
@pshipton
Copy link
Member

This doesn't implement DROP_METHOD_INFO, do we need a new issue to track adding this support?
(OpenJ9 ignores this option collects that information anyway)

@pshipton
Copy link
Member

jenkins test sanity,sanity.openjdk win jdk21,jdknext

@keithc-ca
Copy link
Contributor Author

This doesn't implement DROP_METHOD_INFO, do we need a new issue to track adding this support?

I expected that the option was just a performance hint (to avoid gathering information the client doesn't need), but there are tests that assert UnsupportedOperationException is thrown. I created #18146.

@pshipton pshipton merged commit 910fbb3 into eclipse-openj9:master Sep 15, 2023
6 of 9 checks passed
@keithc-ca keithc-ca deleted the stackwalker branch September 18, 2023 12:20
keithc-ca added a commit to keithc-ca/openj9 that referenced this pull request Oct 27, 2023
This should have been included in eclipse-openj9#18145.

Signed-off-by: Keith W. Campbell <keithc@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
Development

Successfully merging this pull request may close these issues.

JDK22 StackWalker.Option requires DROP_METHOD_INFO implementation
2 participants