From 2cd334ae2d4287216523882f0d298cf3901b7ab1 Mon Sep 17 00:00:00 2001 From: Hiroshi Yamauchi Date: Fri, 9 Jan 2015 14:03:35 -0800 Subject: More of the concurrent copying collector. Bug: 12687968 Change-Id: I62f70274d47df6d6cab714df95c518b750ce3105 --- runtime/gc/reference_processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/gc/reference_processor.h') diff --git a/runtime/gc/reference_processor.h b/runtime/gc/reference_processor.h index 5eb095b364..c67fd98034 100644 --- a/runtime/gc/reference_processor.h +++ b/runtime/gc/reference_processor.h @@ -53,7 +53,7 @@ class ReferenceProcessor { // The slow path bool is contained in the reference class object, can only be set once // Only allow setting this with mutators suspended so that we can avoid using a lock in the // GetReferent fast path as an optimization. - void EnableSlowPath() EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_); + void EnableSlowPath() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); // Decode the referent, may block if references are being processed. mirror::Object* GetReferent(Thread* self, mirror::Reference* reference) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) LOCKS_EXCLUDED(Locks::reference_processor_lock_); -- cgit v1.2.3-59-g8ed1b