< prev index next >

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

Print this page




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







1010 void ShenandoahVerifier::verify_roots_no_forwarded() {
1011   ShenandoahRootVerifier verifier;
1012   ShenandoahVerifyNoForwared cl;
1013   verifier.oops_do(&cl);
1014 }
1015 
1016 void ShenandoahVerifier::verify_roots_no_forwarded_except(ShenandoahRootVerifier::RootTypes types) {
1017   ShenandoahRootVerifier verifier;
1018   verifier.excludes(types);
1019   ShenandoahVerifyNoForwared cl;
1020   verifier.oops_do(&cl);
1021 }


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