From 024d69fb9936ca5a0031d35c9f248853cbc25d3f Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 13 Jun 2019 10:52:32 +0100 Subject: Use cleared JNI weak sentinel from boot image. We were already adding the sentinel to the boot image, so we may as well reuse the boot image copy. Also move pre-allocated objects from class roots to the boot image live objects. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Test: aosp_taimen-userdebug boots. Change-Id: I635dcdd146ca2c6b55d187e9a545a9990b0b35ca --- compiler/optimizing/intrinsic_objects.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'compiler/optimizing/intrinsic_objects.h') diff --git a/compiler/optimizing/intrinsic_objects.h b/compiler/optimizing/intrinsic_objects.h index 863017be38..ed764bd4b2 100644 --- a/compiler/optimizing/intrinsic_objects.h +++ b/compiler/optimizing/intrinsic_objects.h @@ -55,11 +55,9 @@ class IntrinsicObjects { return IndexField::Decode(intrinsic_data); } - static ObjPtr> AllocateBootImageLiveObjects( - Thread* self, - ClassLinker* class_linker) REQUIRES_SHARED(Locks::mutator_lock_); - // Functions for retrieving data for Integer.valueOf(). + static ObjPtr> LookupIntegerCache( + Thread* self, ClassLinker* class_linker) REQUIRES_SHARED(Locks::mutator_lock_); static ObjPtr> GetIntegerValueOfCache( ObjPtr> boot_image_live_objects) REQUIRES_SHARED(Locks::mutator_lock_); -- cgit v1.2.3-59-g8ed1b