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/task_processor.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/gc/task_processor.h') diff --git a/runtime/gc/task_processor.h b/runtime/gc/task_processor.h index 67e3a549a9..5f486192f0 100644 --- a/runtime/gc/task_processor.h +++ b/runtime/gc/task_processor.h @@ -46,6 +46,7 @@ class HeapTask : public SelfDeletingTask { uint64_t target_run_time_; friend class TaskProcessor; + DISALLOW_IMPLICIT_CONSTRUCTORS(HeapTask); }; // Used to process GC tasks (heap trim, heap transitions, concurrent GC). @@ -78,6 +79,8 @@ class TaskProcessor { std::unique_ptr cond_ GUARDED_BY(lock_); std::multiset tasks_ GUARDED_BY(lock_); Thread* running_thread_ GUARDED_BY(lock_); + + DISALLOW_COPY_AND_ASSIGN(TaskProcessor); }; } // namespace gc -- cgit v1.2.3-59-g8ed1b