On Tue, 5 Sep 2023 16:44:24 GMT, Brent Christian <bchri...@openjdk.org> wrote:
>> Mandy Chung has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 29 commits: >> >> - Merge >> - Remove the new getInstance method taking varargs >> - update mode to be int rather than long >> - update tests >> - Review feedback on javadoc >> - Revised the API change. Add Option::DROP_METHOD_INFO >> - Review feedback from Remi >> - fixup javadoc >> - Review feedback: move JLIA to ClassFrameInfo >> - review feedback and javadoc clean up >> - ... and 19 more: https://git.openjdk.org/jdk/compare/c8acab1d...111661bc > > test/micro/org/openjdk/bench/java/lang/StackWalkBench.java line 64: > >> 62: default -> throw new IllegalArgumentException(name); >> 63: }; >> 64: } > > The previous `WALKER_DEFAULT` would not have retained the Class reference, > but the new `default` will? Some benchmarks need the Class reference but some do not. For simplicity, use only walkers that retain Class reference so that all benchmarks can run with the default walker. > test/micro/org/openjdk/bench/java/lang/StackWalkBench.java line 360: > >> 358: } >> 359: } >> 360: > > I'm fine having this benchmark active by default, though offline we had > discussed adding it commented out. Having a second thought, I keep this active as that would be a good reference number for other benchmarks as they all build test stack. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15370#discussion_r1316213522 PR Review Comment: https://git.openjdk.org/jdk/pull/15370#discussion_r1316215312