JDK-8302150 : Speed up compiler/codegen/Test7100757.java
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-02-09
  • Updated: 2024-07-02
  • Resolved: 2023-02-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 21 JDK 8
17.0.8-oracleFixed 21 b11Fixed 8u431Fixed
Related Reports
Relates :  
Relates :  
Description
https://github.com/openjdk/jdk/blame/master/test/hotspot/jtreg/compiler/codegen/Test7100757.java

This test takes 22sec, it is one of the slowest tier1 compiler tests.

Maybe we can reduce the 5_000_000 iteration count?

Ensure that all old compilations still happen with -Xbatch -xx:+PrintCompilation
   1553  969    b  3       compiler.codegen.Test7100757::test (274 bytes)
   1559  972 %  b  4       compiler.codegen.Test7100757::test @ 206 (274 bytes)
   1569  973    b  4       compiler.codegen.Test7100757::test (274 bytes)
   1600  969       3       compiler.codegen.Test7100757::test (274 bytes)   made not entrant
   1627  977 %  b  3       compiler.codegen.Test7100757::main @ 32 (65 bytes)
   1628  978    b  3       compiler.codegen.Test7100757::main (65 bytes)
   1644  979 %  b  4       compiler.codegen.Test7100757::main @ 32 (65 bytes)
   1649  977 %     3       compiler.codegen.Test7100757::main @ 32 (65 bytes)   made not entrant
  10987  979 %     4       compiler.codegen.Test7100757::main @ 32 (65 bytes)   made not entrant

11 vs 1.6 seconds

without flags: 11 vs 0.7 seconds

Comments
Fix request [17u] I backport this for parity with 17.0.8-oracle. No risk, only a test change. Clean backport. Test passes. SAP nightly testing passed.
15-06-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1432 Date: 2023-06-13 18:57:14 +0000
13-06-2023

Changeset: 16a4f02f Author: Emanuel Peter <epeter@openjdk.org> Date: 2023-02-21 07:16:51 +0000 URL: https://git.openjdk.org/jdk/commit/16a4f02f2d4f5574af3b20f2f0c788d15dd503ac
21-02-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/12618 Date: 2023-02-17 15:46:25 +0000
17-02-2023