diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-05-03 15:20:23 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-05-04 09:39:23 -0700 |
commit | 414369a2e3f23e1408fc1cbf4f623014bd95cb8f (patch) | |
tree | 6baba5e4eb1d274c85b03c6c1e036643a0bfb84f /runtime/gc/collector | |
parent | 6f1be4493a558e8dabdc981b37852a2008f7bef1 (diff) | |
download | art-414369a2e3f23e1408fc1cbf4f623014bd95cb8f.zip art-414369a2e3f23e1408fc1cbf4f623014bd95cb8f.tar.gz art-414369a2e3f23e1408fc1cbf4f623014bd95cb8f.tar.bz2 |
Add some more DISALLOW_COPY_AND_ASSIGN
May help prevent bugs maybe.
(cherry picked from commit 3130cdf29eb203be0c38d1107a65d920ec39c106)
Change-Id: Ie73d469dfcd078492ecb3aa28682b42707221202
Diffstat (limited to 'runtime/gc/collector')
-rw-r--r-- | runtime/gc/collector/concurrent_copying.h | 2 | ||||
-rw-r--r-- | runtime/gc/collector/garbage_collector.h | 3 | ||||
-rw-r--r-- | runtime/gc/collector/mark_compact.h | 2 | ||||
-rw-r--r-- | runtime/gc/collector/mark_sweep.h | 2 | ||||
-rw-r--r-- | runtime/gc/collector/partial_mark_sweep.h | 2 | ||||
-rw-r--r-- | runtime/gc/collector/semi_space.h | 2 | ||||
-rw-r--r-- | runtime/gc/collector/sticky_mark_sweep.h | 2 |
7 files changed, 9 insertions, 6 deletions
diff --git a/runtime/gc/collector/concurrent_copying.h b/runtime/gc/collector/concurrent_copying.h index 93de035..60ea6b6 100644 --- a/runtime/gc/collector/concurrent_copying.h +++ b/runtime/gc/collector/concurrent_copying.h @@ -279,7 +279,7 @@ class ConcurrentCopying : public GarbageCollector { friend class FlipCallback; friend class ConcurrentCopyingComputeUnevacFromSpaceLiveRatioVisitor; - DISALLOW_COPY_AND_ASSIGN(ConcurrentCopying); + DISALLOW_IMPLICIT_CONSTRUCTORS(ConcurrentCopying); }; } // namespace collector diff --git a/runtime/gc/collector/garbage_collector.h b/runtime/gc/collector/garbage_collector.h index c5a8d5d..9b76d1a 100644 --- a/runtime/gc/collector/garbage_collector.h +++ b/runtime/gc/collector/garbage_collector.h @@ -190,6 +190,9 @@ class GarbageCollector : public RootVisitor { int64_t total_freed_bytes_; CumulativeLogger cumulative_timings_; mutable Mutex pause_histogram_lock_ DEFAULT_MUTEX_ACQUIRED_AFTER; + + private: + DISALLOW_IMPLICIT_CONSTRUCTORS(GarbageCollector); }; } // namespace collector diff --git a/runtime/gc/collector/mark_compact.h b/runtime/gc/collector/mark_compact.h index 4337644..f59a2cd 100644 --- a/runtime/gc/collector/mark_compact.h +++ b/runtime/gc/collector/mark_compact.h @@ -251,7 +251,7 @@ class MarkCompact : public GarbageCollector { friend class UpdateReferenceVisitor; friend class UpdateRootVisitor; - DISALLOW_COPY_AND_ASSIGN(MarkCompact); + DISALLOW_IMPLICIT_CONSTRUCTORS(MarkCompact); }; } // namespace collector diff --git a/runtime/gc/collector/mark_sweep.h b/runtime/gc/collector/mark_sweep.h index fad3403..7e1af7b 100644 --- a/runtime/gc/collector/mark_sweep.h +++ b/runtime/gc/collector/mark_sweep.h @@ -336,7 +336,7 @@ class MarkSweep : public GarbageCollector { friend class VerifyRootMarkedVisitor; friend class VerifyRootVisitor; - DISALLOW_COPY_AND_ASSIGN(MarkSweep); + DISALLOW_IMPLICIT_CONSTRUCTORS(MarkSweep); }; } // namespace collector diff --git a/runtime/gc/collector/partial_mark_sweep.h b/runtime/gc/collector/partial_mark_sweep.h index ac0d068..1a211cd 100644 --- a/runtime/gc/collector/partial_mark_sweep.h +++ b/runtime/gc/collector/partial_mark_sweep.h @@ -40,7 +40,7 @@ class PartialMarkSweep : public MarkSweep { virtual void BindBitmaps() OVERRIDE SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); private: - DISALLOW_COPY_AND_ASSIGN(PartialMarkSweep); + DISALLOW_IMPLICIT_CONSTRUCTORS(PartialMarkSweep); }; } // namespace collector diff --git a/runtime/gc/collector/semi_space.h b/runtime/gc/collector/semi_space.h index 61fbead..3c25f53 100644 --- a/runtime/gc/collector/semi_space.h +++ b/runtime/gc/collector/semi_space.h @@ -278,7 +278,7 @@ class SemiSpace : public GarbageCollector { private: friend class BitmapSetSlowPathVisitor; - DISALLOW_COPY_AND_ASSIGN(SemiSpace); + DISALLOW_IMPLICIT_CONSTRUCTORS(SemiSpace); }; } // namespace collector diff --git a/runtime/gc/collector/sticky_mark_sweep.h b/runtime/gc/collector/sticky_mark_sweep.h index 4f9dabf..b9ef137 100644 --- a/runtime/gc/collector/sticky_mark_sweep.h +++ b/runtime/gc/collector/sticky_mark_sweep.h @@ -47,7 +47,7 @@ class StickyMarkSweep FINAL : public PartialMarkSweep { EXCLUSIVE_LOCKS_REQUIRED(Locks::heap_bitmap_lock_); private: - DISALLOW_COPY_AND_ASSIGN(StickyMarkSweep); + DISALLOW_IMPLICIT_CONSTRUCTORS(StickyMarkSweep); }; } // namespace collector |