< prev index next >

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

Print this page




 985 
 986       oop fwd = (oop) ShenandoahForwarding::get_forwardee_raw_unchecked(obj);
 987       if (!oopDesc::equals_raw(obj, fwd)) {
 988         ShenandoahAsserts::print_failure(ShenandoahAsserts::_safe_all, obj, p, NULL,
 989                 "Verify Roots In To-Space", "Should not be forwarded", __FILE__, __LINE__);
 990       }
 991     }
 992   }
 993 
 994 public:
 995   void do_oop(narrowOop* p) { do_oop_work(p); }
 996   void do_oop(oop* p)       { do_oop_work(p); }
 997 };
 998 
 999 void ShenandoahVerifier::verify_roots_in_to_space() {
1000   ShenandoahRootVerifier verifier;
1001   ShenandoahVerifyInToSpaceClosure cl;
1002   verifier.oops_do(&cl);
1003 }
1004 







1005 void ShenandoahVerifier::verify_roots_no_forwarded() {
1006   ShenandoahRootVerifier verifier;
1007   ShenandoahVerifyNoForwared cl;
1008   verifier.oops_do(&cl);
1009 }
1010 
1011 void ShenandoahVerifier::verify_roots_no_forwarded_except(ShenandoahRootVerifier::RootTypes types) {
1012   ShenandoahRootVerifier verifier;
1013   verifier.excludes(types);
1014   ShenandoahVerifyNoForwared cl;
1015   verifier.oops_do(&cl);
1016 }


 985 
 986       oop fwd = (oop) ShenandoahForwarding::get_forwardee_raw_unchecked(obj);
 987       if (!oopDesc::equals_raw(obj, fwd)) {
 988         ShenandoahAsserts::print_failure(ShenandoahAsserts::_safe_all, obj, p, NULL,
 989                 "Verify Roots In To-Space", "Should not be forwarded", __FILE__, __LINE__);
 990       }
 991     }
 992   }
 993 
 994 public:
 995   void do_oop(narrowOop* p) { do_oop_work(p); }
 996   void do_oop(oop* p)       { do_oop_work(p); }
 997 };
 998 
 999 void ShenandoahVerifier::verify_roots_in_to_space() {
1000   ShenandoahRootVerifier verifier;
1001   ShenandoahVerifyInToSpaceClosure cl;
1002   verifier.oops_do(&cl);
1003 }
1004 
1005 void ShenandoahVerifier::verify_roots_in_to_space_except(ShenandoahRootVerifier::RootTypes types) {
1006   ShenandoahRootVerifier verifier;
1007   verifier.excludes(types);
1008   ShenandoahVerifyInToSpaceClosure cl;
1009   verifier.oops_do(&cl);
1010 }
1011 
1012 void ShenandoahVerifier::verify_roots_no_forwarded() {
1013   ShenandoahRootVerifier verifier;
1014   ShenandoahVerifyNoForwared cl;
1015   verifier.oops_do(&cl);
1016 }
1017 
1018 void ShenandoahVerifier::verify_roots_no_forwarded_except(ShenandoahRootVerifier::RootTypes types) {
1019   ShenandoahRootVerifier verifier;
1020   verifier.excludes(types);
1021   ShenandoahVerifyNoForwared cl;
1022   verifier.oops_do(&cl);
1023 }
< prev index next >