JDK-8214557 : Filter out VM flags which don't affect AOT code generation
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-11-30
  • Updated: 2020-04-27
  • Resolved: 2018-12-01
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 11 JDK 12
11.0.7-oracleFixed 12 b23Fixed
Description
Some VM flags passed to jaotc could dramatically slow down code generation while they really don't affect it. Need to filter  such flags out.

Comments
I approved this and also approve JDK-8152988.
10-12-2019

Fix request (11u) I would like to downport this for parity with 11.0.7-oracle. Applies clean after downporting 8152988. I also want to downport "8152988: [AOT] Update test batch definitions to include aot-ed java.base module mode into hs-comp testing". With 8152988 this and other changes only make sense. It is closed, so we can not see whether Oracle downported it, nor can I tag it for downport. Mail asking to open this: http://mail.openjdk.java.net/pipermail/jdk-dev/2019- December/003731.html Review: http://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-December/002223.html Change: http://hg.openjdk.java.net/jdk/jdk/rev/ff10f8f3a583 (closed) bug: https://bugs.openjdk.java.net/browse/JDK-8152988
10-12-2019

At the moment 2 flags are filtered out: -Xcomp and -XX:+/-TieredCompilation
01-12-2018

[~epavlova] please, list flags you filter out.
01-12-2018