JDK-8241492 : Strip mining not working for test/hotspot/jtreg/compiler/c2/Test6850611.java
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,12,13,14,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-03-24
  • Updated: 2020-04-29
  • Resolved: 2020-04-02
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 15
15 b18Fixed
Related Reports
Relates :  
Relates :  
Description
I notice we got over a second reaching safepoint with this test.
I don't see how that would be possible if it was proper strip mined.

E.g.
 jtreg -va -retain -javaoptions:"-Xlog:safepoint -XX:+UseG1GC -XX:+UseCountedLoopSafepoints -XX:LoopStripMiningIter=1000 -XX:LoopStripMiningIterShortLoop=100" -testjdk:build/linux-x86_64-server-fastdebug/images/jdk/ open/test/hotspot/jtreg/compiler/c2/Test6850611.java

(options is not needed as they are also default, except log)

[2.215s][info][safepoint] Safepoint "Cleanup", Time since last: 1101783997 ns, Reaching safepoint: 1039624721 ns, At safepoint: 29953 ns,                                                                                                     Total: 1039654674 ns
[4.326s][info][safepoint] Safepoint "Cleanup", Time since last: 1000438383 ns, Reaching safepoint: 1110582065 ns, At safepoint: 15462 ns,                                                                                                     Total: 1110597527 ns

Note that this is fastdebug.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/289aa2a0e819 User: roland Date: 2020-04-02 14:13:28 +0000
02-04-2020

Roland, could you please have a look? Thanks.
24-03-2020

ILW = Missing loop strip mining optimization leads to long time to reaching safepoint, reproducible with simple test but edge case (min/max int loop boundaries), no workaround = MLH = P4
24-03-2020