src/hotspot/share/gc/shenandoah/shenandoahRootVerifier.cpp
changeset 59296 9186be5c78ba
parent 55476 aee0d296c0ef
equal deleted inserted replaced
59295:8b6cc0bb93d0 59296:9186be5c78ba
    41 #include "utilities/debug.hpp"
    41 #include "utilities/debug.hpp"
    42 
    42 
    43 // Check for overflow of number of root types.
    43 // Check for overflow of number of root types.
    44 STATIC_ASSERT((static_cast<uint>(ShenandoahRootVerifier::AllRoots) + 1) > static_cast<uint>(ShenandoahRootVerifier::AllRoots));
    44 STATIC_ASSERT((static_cast<uint>(ShenandoahRootVerifier::AllRoots) + 1) > static_cast<uint>(ShenandoahRootVerifier::AllRoots));
    45 
    45 
    46 ShenandoahRootVerifier::ShenandoahRootVerifier() : _types(AllRoots) {
    46 ShenandoahRootVerifier::ShenandoahRootVerifier(RootTypes types) : _types(types) {
    47 }
    47 }
    48 
    48 
    49 void ShenandoahRootVerifier::excludes(RootTypes types) {
    49 void ShenandoahRootVerifier::excludes(RootTypes types) {
    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 }