JDK-8122947 : Cleanup related to flag UseSSE42Intrinsics needed
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9,10
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2015-06-17
  • Updated: 2017-01-25
  • Resolved: 2017-01-25
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 9
9Resolved
Related Reports
Duplicate :  
Description
This flag is x86 specific.
Currently other platforms - aarch64, ppc have String intrinsics implemented.
So fragment of shared code in library_call.cpp 
  if (Matcher::has_match_rule(Op_StrIndexOf) &&
      UseSSE42Intrinsics) {
       ...
forces non x86 platforms set UseSSE42Intrinsics in order to use String intrinsics.

Instead it should be 
 if (Matcher::has_match_rule(Op_StrIndexOf) {
  ...

and platform dependent methods Matcher::has_match_rule() should check UseSSE42Intrinsics flag for x86.
Other platforms should make their own decision not depending on this flag


Comments
This was fixed with JDK-8145336.
25-01-2017

I believe that should be Matcher::match_rule_supported().
17-06-2015