From 3130cdf29eb203be0c38d1107a65d920ec39c106 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Sun, 3 May 2015 15:20:23 -0700 Subject: Add some more DISALLOW_COPY_AND_ASSIGN May help prevent bugs maybe. Change-Id: Ie73d469dfcd078492ecb3aa28682b42707221202 --- runtime/gc/reference_processor.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/gc/reference_processor.h') diff --git a/runtime/gc/reference_processor.h b/runtime/gc/reference_processor.h index c67fd98034..a44319ba5a 100644 --- a/runtime/gc/reference_processor.h +++ b/runtime/gc/reference_processor.h @@ -81,6 +81,9 @@ class ReferenceProcessor { IsHeapReferenceMarkedCallback* is_marked_callback_; MarkObjectCallback* mark_callback_; void* arg_; + + private: + DISALLOW_IMPLICIT_CONSTRUCTORS(ProcessReferencesArgs); }; bool SlowPathEnabled() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); // Called by ProcessReferences. @@ -105,6 +108,8 @@ class ReferenceProcessor { ReferenceQueue finalizer_reference_queue_; ReferenceQueue phantom_reference_queue_; ReferenceQueue cleared_references_; + + DISALLOW_COPY_AND_ASSIGN(ReferenceProcessor); }; } // namespace gc -- cgit v1.2.3-59-g8ed1b