RFR: 8268829: Provide an optimized way to walk the stack with Class object only [v6]
Mandy Chung
mchung at openjdk.org
Mon Aug 28 18:19:12 UTC 2023
On Mon, 28 Aug 2023 14:47:20 GMT, Volker Simonis <simonis at openjdk.org> wrote:
> thanks for doing this experiment. I've looked at your proposal, but I can't see how it can help to fix [JDK-8311500](https://bugs.openjdk.org/browse/JDK-8311500).....
I think you may be confused. This PR can be viewed as follows:
1. introduce a new API to allow walking the stack with no method information and the implementation will use `ClassFrameInfo` buffer
2. reduce the memory footprint of `StackFrameInfo` buffer
3. change `getCallerClass` to use the `ClassFrameInfo` buffer
4. fix JDK-8311500 by checking if a method is caller-sensitive in Java. Note that the filtering of reflection frames has been done in Java.
#2-4 can be backport to older releases. #2 improve the StackWalker performance. Backporting the PR should be straight-forward by excluding the API and javadoc change.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15370#issuecomment-1696134958
More information about the core-libs-dev
mailing list