diff options
author | 2017-09-29 17:53:18 -0700 | |
---|---|---|
committer | 2017-10-02 14:41:40 -0700 | |
commit | 8a2a1fc5d7a338a9b29794b2ee5b40a1c24a4e52 (patch) | |
tree | 0de46574f1bcb0820287db63722178473158b1ec /runtime/java_vm_ext.h | |
parent | a96c47805bdb4c6755ef539bf8c0f945181428b1 (diff) |
ART: Dump allocation stacks in reference table dumps
When allocation tracking is enabled and allocation stacks are available,
print the stack traces of the objects in a reference table dumps, to
aid tracking table overflows.
Extend reference_table_test.
Bug: 67044702
Test: m test-art-host
Change-Id: I0118ba095f08dc66739707cd6a184487974b1570
Diffstat (limited to 'runtime/java_vm_ext.h')
-rw-r--r-- | runtime/java_vm_ext.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/java_vm_ext.h b/runtime/java_vm_ext.h index 50aabdcdf5..b767b199f0 100644 --- a/runtime/java_vm_ext.h +++ b/runtime/java_vm_ext.h @@ -123,7 +123,9 @@ class JavaVMExt : public JavaVM { void DumpReferenceTables(std::ostream& os) REQUIRES_SHARED(Locks::mutator_lock_) - REQUIRES(!Locks::jni_globals_lock_, !Locks::jni_weak_globals_lock_); + REQUIRES(!Locks::jni_globals_lock_, + !Locks::jni_weak_globals_lock_, + !Locks::alloc_tracker_lock_); bool SetCheckJniEnabled(bool enabled); |