RFR: 8252518: cache result of CompilerToVM.getComponentType
Doug Simon
dnsimon at openjdk.java.net
Tue Sep 15 09:26:41 UTC 2020
Linux perf profiles of CompileTheWorld with libgraal show that `CompilerToVM.getComponentType` is the most expensive
JVMCI VM entry point with almost 2% of total execution time:
+ 1.87% 0.04% [.] c2v_getComponentType
+ 0.54% 0.00% [.] c2v_installCode
0.39% 0.00% [.] c2v_getResolvedJavaType0
0.04% 0.00% [.] c2v_resolvePossiblyCachedConstantInPool
0.03% 0.00% [.] c2v_interpreterFrameSize
0.03% 0.01% [.] c2v_isAssignableFrom
0.02% 0.00% [.] c2v_translate
0.01% 0.00% [.] c2v_getIdentityHashCode
It's worth caching the result of this call.
-------------
Commit messages:
- 8252518: cache result of CompilerToVM.getComponentType
Changes: https://git.openjdk.java.net/jdk/pull/172/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=172&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8252518
Stats: 13 lines in 1 file changed: 8 ins; 0 del; 5 mod
Patch: https://git.openjdk.java.net/jdk/pull/172.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/172/head:pull/172
PR: https://git.openjdk.java.net/jdk/pull/172
More information about the hotspot-compiler-dev
mailing list