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

Loop opts anti dependent store detection should ignore uncommon trap calls

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • 12
    • hotspot
    • b21

      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++) {

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

              Created:
              Updated:
              Resolved: