mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8285447: StackWalker minimal batch size should be optimized for getCallerClass
Reviewed-by: simonis
This commit is contained in:
parent
fc3e826692
commit
d75d9774c8
3 changed files with 71 additions and 18 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue