summaryrefslogtreecommitdiff
path: root/runtime/reference_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/reference_table.h')
-rw-r--r--runtime/reference_table.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/reference_table.h b/runtime/reference_table.h
index 010c6f8fde..6af5ca5224 100644
--- a/runtime/reference_table.h
+++ b/runtime/reference_table.h
@@ -47,7 +47,9 @@ class ReferenceTable {
size_t Size() const;
- void Dump(std::ostream& os) REQUIRES_SHARED(Locks::mutator_lock_);
+ void Dump(std::ostream& os)
+ REQUIRES_SHARED(Locks::mutator_lock_)
+ REQUIRES(!Locks::alloc_tracker_lock_);
void VisitRoots(RootVisitor* visitor, const RootInfo& root_info)
REQUIRES_SHARED(Locks::mutator_lock_);
@@ -56,7 +58,8 @@ class ReferenceTable {
typedef std::vector<GcRoot<mirror::Object>,
TrackingAllocator<GcRoot<mirror::Object>, kAllocatorTagReferenceTable>> Table;
static void Dump(std::ostream& os, Table& entries)
- REQUIRES_SHARED(Locks::mutator_lock_);
+ REQUIRES_SHARED(Locks::mutator_lock_)
+ REQUIRES(!Locks::alloc_tracker_lock_);
friend class IndirectReferenceTable; // For Dump.
std::string name_;