src/hotspot/share/gc/shenandoah/shenandoahRootVerifier.cpp
changeset 55476 aee0d296c0ef
parent 55335 f7cc25dda38a
child 58679 9c3209ff7550
child 59296 9186be5c78ba
equal deleted inserted replaced
55475:6ca3526c4e25 55476:aee0d296c0ef
    50   _types = static_cast<ShenandoahRootVerifier::RootTypes>(static_cast<uint>(_types) & (~static_cast<uint>(types)));
    50   _types = static_cast<ShenandoahRootVerifier::RootTypes>(static_cast<uint>(_types) & (~static_cast<uint>(types)));
    51 }
    51 }
    52 
    52 
    53 bool ShenandoahRootVerifier::verify(RootTypes type) const {
    53 bool ShenandoahRootVerifier::verify(RootTypes type) const {
    54   return (_types & type) != 0;
    54   return (_types & type) != 0;
       
    55 }
       
    56 
       
    57 ShenandoahRootVerifier::RootTypes ShenandoahRootVerifier::combine(RootTypes t1, RootTypes t2) {
       
    58   return static_cast<ShenandoahRootVerifier::RootTypes>(static_cast<uint>(t1) | static_cast<uint>(t2));
    55 }
    59 }
    56 
    60 
    57 void ShenandoahRootVerifier::oops_do(OopClosure* oops) {
    61 void ShenandoahRootVerifier::oops_do(OopClosure* oops) {
    58   CodeBlobToOopClosure blobs(oops, !CodeBlobToOopClosure::FixRelocations);
    62   CodeBlobToOopClosure blobs(oops, !CodeBlobToOopClosure::FixRelocations);
    59   if (verify(CodeRoots)) {
    63   if (verify(CodeRoots)) {