JDK-8200303 : C2 should leverage profiling for lookupswitch/tableswitch
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-03-27
  • Updated: 2020-08-12
  • Resolved: 2018-04-24
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 b11Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Same motivation as JDK-8058192 that seems to be used to cover graal.
Comments
Tests passed clean.
24-04-2018

According to Roland the failure is due to other problem: JDK-8201368.
24-04-2018

Test java/lang/Character/CheckScript.java in test/jdk failed with these changes. It passed with -XX:-UseSwitchProfiling
09-04-2018

Performance seems fine. As Roland pointed this optimization improved specjvm2008 Serial benchmark by 8-9%.
06-04-2018

Latest webrev which was tested: http://cr.openjdk.java.net/~roland/8200303/webrev.02/
05-04-2018

Latest testing passed.
05-04-2018

Failed to build on SPARC (PCH?): Undefined first referenced symbol in file log2f /workspace/build/solaris-sparcv9/hotspot/variant-server/libjvm/objs/parse2.o
27-03-2018

http://cr.openjdk.java.net/~roland/8200303/webrev.00/
27-03-2018