From 67ef46adfb2c4990832e23aebeb9c0582d8519c4 Mon Sep 17 00:00:00 2001 From: Hiroshi Yamauchi Date: Thu, 21 Aug 2014 15:59:43 -0700 Subject: Avoid handle-less fields in ClassLinker::InitializeClass() There were some handle-less fields in a SafeMap across GC points. Bug: 12687968 Change-Id: Ib8c6527d4e23031f1d0074fa11d8f85499b68340 --- runtime/dex_file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/dex_file.h') diff --git a/runtime/dex_file.h b/runtime/dex_file.h index 2794af6..1e86bfc 100644 --- a/runtime/dex_file.h +++ b/runtime/dex_file.h @@ -1199,7 +1199,7 @@ class EncodedStaticFieldValueIterator { SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); template - void ReadValueToField(mirror::ArtField* field) const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); + void ReadValueToField(Handle field) const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); bool HasNext() { return pos_ < array_size_; } -- cgit v1.1