> Typically it will find the caller class at the second stack frame from the > frame of executing `StackWalker::getCallerClass`. The initial size of the > buffer can be changed from 8 to 4 (the top 2 elements are reserved for > implementation use). If it fetches another batch, `getCallerClass` may be > invoked via core reflection, so subsequent batches can be increased to a > larger size. This PR also moves the benchmark for `getCallerClass` in its > own file because it does not need to test with different depth and can be > separated from StackWalkBench.
Mandy Chung has updated the pull request incrementally with one additional commit since the last revision: Make number of the reserved elements to 1 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15642/files - new: https://git.openjdk.org/jdk/pull/15642/files/c971d220..3df1ca13 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15642&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15642&range=01-02 Stats: 5 lines in 1 file changed: 0 ins; 1 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/15642.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15642/head:pull/15642 PR: https://git.openjdk.org/jdk/pull/15642