The test `compiler/valhalla/inlinetypes/TestTearing.java` regularly times out 
in tier5 when run with `-XX:TieredStopAtLevel=3`.

The reason is that we have a long running loop with 1 million iterations - 
simply too slow for C1 only. I took a measurement with just one of the several 
`@run` statements on my local machine. While the C2 run was finished within 
half a minute, it took the run with `-XX:TieredStopAtLevel=3` 20min.

I'm therefore proposing to use a much smaller loop limit for C1 only runs by 
defining a new jtreg header and an additional argument passed to `main()` to 
set it up correspondingly.

Thanks,
Christian

-------------

Commit messages:
 - 8367500: [lworld] compiler/valhalla/inlinetypes/TestTearing.java times out 
with C1 only

Changes: https://git.openjdk.org/valhalla/pull/1634/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1634&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8367500
  Stats: 56 lines in 1 file changed: 51 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/valhalla/pull/1634.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1634/head:pull/1634

PR: https://git.openjdk.org/valhalla/pull/1634

Reply via email to