return root_.IsNull();
}
- ALWAYS_INLINE GcRoot() {}
+ ALWAYS_INLINE GcRoot() noexcept {}
explicit ALWAYS_INLINE GcRoot(MirrorType* ref)
REQUIRES_SHARED(Locks::mutator_lock_);
explicit ALWAYS_INLINE GcRoot(ObjPtr<MirrorType> ref)
// Set the initial state for the 0th entry to be {0,1} which is guaranteed to fail
// the lookup id == stored id branch.
DexCachePair(ObjPtr<T> object, uint32_t index);
- DexCachePair() : index(0) {}
+ DexCachePair() noexcept : index(0) {}
DexCachePair(const DexCachePair<T>&) = default;
DexCachePair& operator=(const DexCachePair<T>&) = default;
NativeDexCachePair(T* object, uint32_t index)
: object(object),
index(index) {}
- NativeDexCachePair() : object(nullptr), index(0u) { }
+ NativeDexCachePair() noexcept : object(nullptr), index(0u) { }
NativeDexCachePair(const NativeDexCachePair<T>&) = default;
NativeDexCachePair& operator=(const NativeDexCachePair<T>&) = default;
template<class MirrorType>
class MANAGED CompressedReference : public mirror::ObjectReference<false, MirrorType> {
public:
- CompressedReference<MirrorType>() REQUIRES_SHARED(Locks::mutator_lock_)
+ CompressedReference<MirrorType>() noexcept REQUIRES_SHARED(Locks::mutator_lock_)
: mirror::ObjectReference<false, MirrorType>(nullptr) {}
static CompressedReference<MirrorType> FromMirrorPtr(MirrorType* p)