summaryrefslogtreecommitdiff
path: root/compiler/optimizing/intrinsic_objects.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2019-06-13 10:52:32 +0100
committer Vladimir Marko <vmarko@google.com> 2019-06-17 09:30:53 +0000
commit024d69fb9936ca5a0031d35c9f248853cbc25d3f (patch)
treec1eeddf91ea15eda5d139d4592ac7f0df80e9be0 /compiler/optimizing/intrinsic_objects.h
parent43ae4acf219fe25a56e2055ebcebc4d08020a25d (diff)
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
Diffstat (limited to 'compiler/optimizing/intrinsic_objects.h')
-rw-r--r--compiler/optimizing/intrinsic_objects.h6
1 files changed, 2 insertions, 4 deletions
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<mirror::ObjectArray<mirror::Object>> AllocateBootImageLiveObjects(
- Thread* self,
- ClassLinker* class_linker) REQUIRES_SHARED(Locks::mutator_lock_);
-
// Functions for retrieving data for Integer.valueOf().
+ static ObjPtr<mirror::ObjectArray<mirror::Object>> LookupIntegerCache(
+ Thread* self, ClassLinker* class_linker) REQUIRES_SHARED(Locks::mutator_lock_);
static ObjPtr<mirror::ObjectArray<mirror::Object>> GetIntegerValueOfCache(
ObjPtr<mirror::ObjectArray<mirror::Object>> boot_image_live_objects)
REQUIRES_SHARED(Locks::mutator_lock_);