< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahAsserts.cpp

Print this page
*** 195,11 ***
      print_failure(_safe_unknown, obj, interior_loc, nullptr, "Shenandoah assert_correct failed",
                    "oop must point to a heap address",
                    file, line);
    }
  
!   Klass* obj_klass = obj->klass_or_null();
    if (obj_klass == nullptr) {
      print_failure(_safe_unknown, obj, interior_loc, nullptr, "Shenandoah assert_correct failed",
                    "Object klass pointer should not be null",
                    file,line);
    }
--- 195,11 ---
      print_failure(_safe_unknown, obj, interior_loc, nullptr, "Shenandoah assert_correct failed",
                    "oop must point to a heap address",
                    file, line);
    }
  
!   Klass* obj_klass = obj->forward_safe_klass();
    if (obj_klass == nullptr) {
      print_failure(_safe_unknown, obj, interior_loc, nullptr, "Shenandoah assert_correct failed",
                    "Object klass pointer should not be null",
                    file,line);
    }

*** 227,11 ***
        print_failure(_safe_oop, obj, interior_loc, nullptr, "Shenandoah assert_correct failed",
                      "Forwardee must point to a heap address",
                      file, line);
      }
  
!     if (obj_klass != fwd->klass()) {
        print_failure(_safe_oop, obj, interior_loc, nullptr, "Shenandoah assert_correct failed",
                      "Forwardee klass disagrees with object class",
                      file, line);
      }
  
--- 227,11 ---
        print_failure(_safe_oop, obj, interior_loc, nullptr, "Shenandoah assert_correct failed",
                      "Forwardee must point to a heap address",
                      file, line);
      }
  
!     if (obj_klass != fwd->forward_safe_klass()) {
        print_failure(_safe_oop, obj, interior_loc, nullptr, "Shenandoah assert_correct failed",
                      "Forwardee klass disagrees with object class",
                      file, line);
      }
  
< prev index next >