diff options
author | 2022-12-12 09:12:21 +0000 | |
---|---|---|
committer | 2022-12-12 15:57:57 +0000 | |
commit | a20ec9bb10d7ded8ae7d95d4de1e190d22260c73 (patch) | |
tree | 50b5a757c4aa9f5aa7c663d47d96474f538476a2 /runtime/entrypoints/entrypoint_utils-inl.h | |
parent | b9df137d1dbdab1fdca13bb459705b6603e9328b (diff) |
Fix clinit debug check in instrumentation.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing --jit --interpreter
Change-Id: Idae620b0b8f9ed67574f5b785fdac3efcb534cfd
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils-inl.h')
-rw-r--r-- | runtime/entrypoints/entrypoint_utils-inl.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/runtime/entrypoints/entrypoint_utils-inl.h b/runtime/entrypoints/entrypoint_utils-inl.h index e2aa81f837..91163f4139 100644 --- a/runtime/entrypoints/entrypoint_utils-inl.h +++ b/runtime/entrypoints/entrypoint_utils-inl.h @@ -715,13 +715,6 @@ inline INT_TYPE art_float_to_integral(FLOAT_TYPE f) { } } -inline bool NeedsClinitCheckBeforeCall(ArtMethod* method) { - // The class needs to be visibly initialized before we can use entrypoints to - // compiled code for static methods. See b/18161648 . The class initializer is - // special as it is invoked during initialization and does not need the check. - return method->IsStatic() && !method->IsConstructor(); -} - inline ObjPtr<mirror::Object> GetGenericJniSynchronizationObject(Thread* self, ArtMethod* called) REQUIRES_SHARED(Locks::mutator_lock_) { DCHECK(!called->IsCriticalNative()); |