summaryrefslogtreecommitdiff
path: root/runtime/gc/reference_processor.cc
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2017-12-21 17:07:11 -0800
committer Ian Rogers <irogers@google.com> 2017-12-22 10:11:39 -0800
commit55256cb60e11d4fac71affb4b9760a2931a3598d (patch)
treefc1ed6885b013e0aa2bcfd9ef4dd94fec29bd382 /runtime/gc/reference_processor.cc
parent64bae9fb677aa0e2406d13ea9f8ebaa92e16f978 (diff)
Extensions to check JNI.
Ensure critical lock isn't held when returning from a down-call. Log a warning if the critical lock is held for a significant period of time. Refactor JNIEnvExt to be a class rather than a struct. Test: mma test-art-host Change-Id: I4d149cb04d3a7308a22b92b196e51e2f1ae17ede
Diffstat (limited to 'runtime/gc/reference_processor.cc')
-rw-r--r--runtime/gc/reference_processor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/reference_processor.cc b/runtime/gc/reference_processor.cc
index d58d09c794..c59642fe4e 100644
--- a/runtime/gc/reference_processor.cc
+++ b/runtime/gc/reference_processor.cc
@@ -273,7 +273,7 @@ void ReferenceProcessor::EnqueueClearedReferences(Thread* self) {
jobject cleared_references;
{
ReaderMutexLock mu(self, *Locks::mutator_lock_);
- cleared_references = self->GetJniEnv()->vm->AddGlobalRef(
+ cleared_references = self->GetJniEnv()->GetVm()->AddGlobalRef(
self, cleared_references_.GetList());
}
if (kAsyncReferenceQueueAdd) {