diff options
author | 2024-06-17 14:28:40 +0000 | |
---|---|---|
committer | 2024-06-18 09:09:11 +0000 | |
commit | b9485ace615a1ef2476884ee790357dd28c32d4e (patch) | |
tree | 59010f8e2765a2f5434011e13fa463c2e37aac9c /runtime/class_linker.cc | |
parent | 3004a295d46959b0c4b9fa354175e6c88462a17b (diff) |
Move `jni_stub_hash_map_test.cc` to `compiler/`.
The test is using `Compiler`, so it belongs to `compiler/`.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 288983053
Change-Id: Id1d5aef67a694a8b610d390c4e40e74d9d788ca9
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r-- | runtime/class_linker.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index c8394b2a5d..4d3eaea37f 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -138,6 +138,7 @@ #include "nterp_helpers-inl.h" #include "nterp_helpers.h" #include "oat/image-inl.h" +#include "oat/jni_stub_hash_map-inl.h" #include "oat/oat.h" #include "oat/oat_file-inl.h" #include "oat/oat_file.h" @@ -409,6 +410,14 @@ void ClassLinker::ForceClassInitialized(Thread* self, Handle<mirror::Class> klas MakeInitializedClassesVisiblyInitialized(self, /*wait=*/true); } +const void* ClassLinker::FindBootJniStub(ArtMethod* method) { + return FindBootJniStub(JniStubKey(method)); +} + +const void* ClassLinker::FindBootJniStub(uint32_t flags, std::string_view shorty) { + return FindBootJniStub(JniStubKey(flags, shorty)); +} + const void* ClassLinker::FindBootJniStub(JniStubKey key) { auto it = boot_image_jni_stubs_.find(key); if (it == boot_image_jni_stubs_.end()) { |