Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8122947

Cleanup related to flag UseSSE42Intrinsics needed

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • 9, 10
    • hotspot
    • None

      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

            thartmann Tobias Hartmann
            aharlap Alexander Harlap (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: