summaryrefslogtreecommitdiff
path: root/runtime/gc/reference_processor.cc
diff options
context:
space:
mode:
author Richard Uhler <ruhler@google.com> 2016-01-22 14:18:57 -0800
committer Richard Uhler <ruhler@google.com> 2016-01-26 15:19:36 -0800
commit522d51b088c63d757e487d07d769f8f09e042f2a (patch)
treef1b5a1646ef0fa68f7b51e68caaf1f82624099e2 /runtime/gc/reference_processor.cc
parentc31fb58453ec1eba82390c3313623d37314c5490 (diff)
Factor out common code for SetPendingNext.
Change-Id: I6c1f9cd6da7b2c21714175455e61479273d3669f
Diffstat (limited to 'runtime/gc/reference_processor.cc')
-rw-r--r--runtime/gc/reference_processor.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/runtime/gc/reference_processor.cc b/runtime/gc/reference_processor.cc
index 5e7f1a20fd..8356814354 100644
--- a/runtime/gc/reference_processor.cc
+++ b/runtime/gc/reference_processor.cc
@@ -277,11 +277,7 @@ bool ReferenceProcessor::MakeCircularListIfUnenqueued(mirror::FinalizerReference
MutexLock mu2(self, *Locks::reference_queue_finalizer_references_lock_);
if (!reference->IsEnqueued()) {
CHECK(reference->IsFinalizerReferenceInstance());
- if (Runtime::Current()->IsActiveTransaction()) {
- reference->SetPendingNext<true>(reference);
- } else {
- reference->SetPendingNext<false>(reference);
- }
+ reference->SetPendingNext(reference);
return true;
}
return false;