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

Loop opts anti dependent store detection should ignore uncommon trap calls

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      diff --git a/src/hotspot/share/opto/loopnode.cpp b/src/hotspot/share/opto/loopnode.cpp
      --- a/src/hotspot/share/opto/loopnode.cpp
      +++ b/src/hotspot/share/opto/loopnode.cpp
      @@ -3910,7 +3910,8 @@
           }
           while(worklist.size() != 0 && LCA != early) {
             Node* s = worklist.pop();
      - if (s->is_Load() || s->Opcode() == Op_SafePoint) {
      + if (s->is_Load() || s->Opcode() == Op_SafePoint ||
      + (s->is_CallStaticJava() && s->as_CallStaticJava()->uncommon_trap_request() != 0)) {
               continue;
             } else if (s->is_MergeMem()) {
               for (DUIterator_Fast imax, i = s->fast_outs(imax); i < imax; i++) {

        Attachments

          Activity

            People

            • Assignee:
              roland Roland Westrelin
              Reporter:
              roland Roland Westrelin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: