RFR: 8302150: Speed up compiler/codegen/Test7100757.java
Emanuel Peter
epeter at openjdk.org
Fri Feb 17 16:37:51 UTC 2023
This test took over `11 seconds`. It had a very high iteration count of `5_000_000`.
I lowered it to `50_000`, it now takes about `0.7 seconds`, so over `15x speedup`.
I ensured that the same compilations still happen, with and without `-Xbatch`, this is the reason why I could not set it all the way down to `10_000` (the speedup at this point was hardly noticable anyway):
554 1023 3 compiler.codegen.Test7100757::test (274 bytes)
561 1028 % 4 compiler.codegen.Test7100757::test @ 14 (274 bytes)
578 1033 4 compiler.codegen.Test7100757::test (274 bytes)
593 1023 3 compiler.codegen.Test7100757::test (274 bytes) made not entrant
599 1034 % 3 compiler.codegen.Test7100757::main @ 32 (65 bytes)
600 1035 3 compiler.codegen.Test7100757::main (65 bytes)
615 1036 % 4 compiler.codegen.Test7100757::main @ 32 (65 bytes)
635 1034 % 3 compiler.codegen.Test7100757::main @ 32 (65 bytes) made not entrant
676 1036 % 4 compiler.codegen.Test7100757::main @ 32 (65 bytes) made not entrant
I am not sure if the test only reproduced intermittently, but if it did it would now probably reproduce with lower frequency, but hopefully still eventually (maybe 100x less less often). Or maybe the original author just did not notice that the iteration count was a bit excessive.
-------------
Commit messages:
- copyright
- Speed up compiler/codegen/Test7100757.java
Changes: https://git.openjdk.org/jdk/pull/12618/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12618&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8302150
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/12618.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12618/head:pull/12618
PR: https://git.openjdk.org/jdk/pull/12618
More information about the hotspot-compiler-dev
mailing list