diff options
Diffstat (limited to 'runtime/gc_root.h')
-rw-r--r-- | runtime/gc_root.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/gc_root.h b/runtime/gc_root.h index 3734bcc7e1..0304d0d93c 100644 --- a/runtime/gc_root.h +++ b/runtime/gc_root.h @@ -195,7 +195,8 @@ class GcRoot { return root_.IsNull(); } - ALWAYS_INLINE GcRoot(MirrorType* ref = nullptr) SHARED_REQUIRES(Locks::mutator_lock_); + ALWAYS_INLINE GcRoot() {} + explicit ALWAYS_INLINE GcRoot(MirrorType* ref) SHARED_REQUIRES(Locks::mutator_lock_); private: // Root visitors take pointers to root_ and place them in CompressedReference** arrays. We use a |