summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2015-07-30 22:01:16 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-30 22:01:16 +0000
commitbb1f94f7553501882a4b8391fbf5cb75e2e416bd (patch)
treecd81388615831741556f4e1cf3ca1ae9910e0968
parent266ccd03d244a0ecbecabd89181e24b94948546c (diff)
parent2ada67b3145d38b352297bdb9d0546f58882e208 (diff)
downloadandroid_art-bb1f94f7553501882a4b8391fbf5cb75e2e416bd.tar.gz
android_art-bb1f94f7553501882a4b8391fbf5cb75e2e416bd.tar.bz2
android_art-bb1f94f7553501882a4b8391fbf5cb75e2e416bd.zip
am 2ada67b3: Don\'t dump stack when deleting an invalid local ref
* commit '2ada67b3145d38b352297bdb9d0546f58882e208': Don't dump stack when deleting an invalid local ref
-rw-r--r--runtime/indirect_reference_table.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/indirect_reference_table.cc b/runtime/indirect_reference_table.cc
index 55632bad55..d54c1a653e 100644
--- a/runtime/indirect_reference_table.cc
+++ b/runtime/indirect_reference_table.cc
@@ -29,6 +29,8 @@
namespace art {
+static constexpr bool kDumpStackOnNonLocalReference = false;
+
template<typename T>
class MutatorLockedDumpable {
public:
@@ -184,7 +186,9 @@ bool IndirectReferenceTable::Remove(uint32_t cookie, IndirectRef iref) {
if (env->check_jni) {
ScopedObjectAccess soa(self);
LOG(WARNING) << "Attempt to remove non-JNI local reference, dumping thread";
- self->Dump(LOG(WARNING));
+ if (kDumpStackOnNonLocalReference) {
+ self->Dump(LOG(WARNING));
+ }
}
return true;
}