summaryrefslogtreecommitdiffstats
path: root/runtime/linear_alloc.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2015-05-03 15:20:23 -0700
committerMathieu Chartier <mathieuc@google.com>2015-05-04 09:39:23 -0700
commit414369a2e3f23e1408fc1cbf4f623014bd95cb8f (patch)
tree6baba5e4eb1d274c85b03c6c1e036643a0bfb84f /runtime/linear_alloc.h
parent6f1be4493a558e8dabdc981b37852a2008f7bef1 (diff)
downloadart-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/linear_alloc.h')
-rw-r--r--runtime/linear_alloc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/linear_alloc.h b/runtime/linear_alloc.h
index 6d8eda6..fcabcc8 100644
--- a/runtime/linear_alloc.h
+++ b/runtime/linear_alloc.h
@@ -42,6 +42,8 @@ class LinearAlloc {
private:
mutable Mutex lock_ DEFAULT_MUTEX_ACQUIRED_AFTER;
ArenaAllocator allocator_ GUARDED_BY(lock_);
+
+ DISALLOW_IMPLICIT_CONSTRUCTORS(LinearAlloc);
};
} // namespace art