JDK-8173100 : AArch64: -XX:-UseOnStackReplacement does not work together with -XX:+TieredCompilation
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9,10
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: aarch64
  • Submitted: 2017-01-20
  • Updated: 2018-04-04
  • Resolved: 2018-03-19
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
11 b07Fixed
Related Reports
Relates :  
Relates :  
Description
Hotspot patch [1] introduces a test case
hotspot/test/compiler/interpreter/DisableOSRTest.java which also
exposes the same issue on aarch64.

I.e. with -XX:-UseOnStackReplacement and -XX:+TieredCompilation
options, there are still OSR compilations found from
-XX:+PrintCompilation.

[1] http://hg.openjdk.java.net/jdk9/hs-comp/hotspot/rev/fd222df9f27c
[2] http://hg.openjdk.java.net/aarch64-port/jdk8/hotspot/rev/18e5cbbe8abf
Comments
I am not a reviewer, but I confirmed that the patchset posted by Ningsheng does fix this issue in jdk/hs branch.
22-01-2018

webrev rebased to jdk/hs: http://cr.openjdk.java.net/~njian/8173100/webrev.01/
28-11-2017

Initial review thread: http://mail.openjdk.java.net/pipermail/aarch64-port-dev/2017-January/004119.html
25-01-2017

ILW = Product flag does not work with non-default value, AARCH64 with TieredCompilation, no workaround = LMH = P5
20-01-2017