RFR: 8299061: Using lambda to optimize GraphKit::compute_stack_effects()
Xin Liu
xliu at openjdk.org
Tue Dec 20 07:25:47 UTC 2022
Some bytecodes donot need rsize in GraphKit::compute_stack_effects().
This change defines rsize as a lambda and avoid computation if it's not in use.
We utilize CTW($openjdk/test/hotspot/jtreg/testlibrary/ctw/dist) to test this patch.
We compile 2 builtin modules: java.base and jdk.compiler(javac).
JAVA_OPTIONS="-XX:+CITime -XX:-TieredCompilation" ./ctw.sh modules:java.base
JAVA_OPTIONS="-XX:+CITime -XX:-TieredCompilation" ./ctw.sh modules:jdk.compiler
For java.base module, the average compilation speed increases from 12011 bytes/s to 12301 bytes/s, or +2.41%.
For jdk.compiler module, the average compilation speed is almost same(+0.16%)
-------------
Commit messages:
- 8299061: Using lambda to optimize GraphKit::compute_stack_effects()
Changes: https://git.openjdk.org/jdk/pull/11737/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11737&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8299061
Stats: 18 lines in 1 file changed: 8 ins; 3 del; 7 mod
Patch: https://git.openjdk.org/jdk/pull/11737.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11737/head:pull/11737
PR: https://git.openjdk.org/jdk/pull/11737
More information about the hotspot-compiler-dev
mailing list