equal
deleted
inserted
replaced
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 } |