8285447: StackWalker minimal batch size should be optimized for getCallerClass

Reviewed-by: simonis
This commit is contained in:
Mandy Chung 2023-09-12 16:24:16 +00:00
parent fc3e826692
commit d75d9774c8
3 changed files with 71 additions and 18 deletions

View file

@ -310,16 +310,6 @@ public class StackWalkBench {
}
}
/**
* StackWalker.getCallerClass()
*/
@Benchmark
public void getCallerClass(Blackhole bh) {
final StackWalker sw = walker(walker);
Class<?> c = sw.getCallerClass();
bh.consume(c);
}
/**
* StackWalker.getCallerClass() with generated call stack of
* the given depth.