diff options
author | 2018-02-15 10:41:07 +0000 | |
---|---|---|
committer | 2018-02-15 15:36:21 +0000 | |
commit | 7287c4d75e38e7a01c7ea3fdebb47d9cfe128a56 (patch) | |
tree | 2b43d1b334e05e1c5719fee3f2a16bebaff059d9 /runtime/mirror/class.h | |
parent | 1efa7cb8c415f4df8a248242cd773a1fc671878e (diff) |
Add Class.getPrimitiveClass().
Implement the native part in ART and remove the native parts
of the previously needed workaround for java.lang.Void.TYPE.
Companion libcore/ change:
https://android-review.googlesource.com/619326
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: Pixel 2 XL boots.
Bug: 73346078
Change-Id: Icfb201a1f08d8ff2a65c58f7c0ec25aa2296db29
Diffstat (limited to 'runtime/mirror/class.h')
-rw-r--r-- | runtime/mirror/class.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/mirror/class.h b/runtime/mirror/class.h index b5deffb77b..b9a31e54b7 100644 --- a/runtime/mirror/class.h +++ b/runtime/mirror/class.h @@ -1134,6 +1134,10 @@ class MANAGED Class FINAL : public Object { void VisitNativeRoots(Visitor& visitor, PointerSize pointer_size) REQUIRES_SHARED(Locks::mutator_lock_); + // Get one of the primitive classes. + static ObjPtr<mirror::Class> GetPrimitiveClass(ObjPtr<mirror::String> name) + REQUIRES_SHARED(Locks::mutator_lock_); + // When class is verified, set the kAccSkipAccessChecks flag on each method. void SetSkipAccessChecksFlagOnAllMethods(PointerSize pointer_size) REQUIRES_SHARED(Locks::mutator_lock_); |