diff options
Diffstat (limited to 'test/common/runtime_state.cc')
-rw-r--r-- | test/common/runtime_state.cc | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/test/common/runtime_state.cc b/test/common/runtime_state.cc index f26e122580..285f3aa541 100644 --- a/test/common/runtime_state.cc +++ b/test/common/runtime_state.cc @@ -188,28 +188,4 @@ extern "C" JNIEXPORT jboolean JNICALL Java_Main_hasSingleImplementation(JNIEnv* return method->HasSingleImplementation(); } -extern "C" JNIEXPORT int JNICALL Java_Main_getHotnessCounter(JNIEnv* env, - jclass, - jclass cls, - jstring method_name) { - jit::Jit* jit = Runtime::Current()->GetJit(); - if (jit == nullptr) { - // The hotness counter is valid only under JIT. - // If we don't JIT return 0 to match test expectations. - return 0; - } - - ArtMethod* method = nullptr; - { - ScopedObjectAccess soa(Thread::Current()); - - ScopedUtfChars chars(env, method_name); - CHECK(chars.c_str() != nullptr); - method = soa.Decode<mirror::Class>(cls)->FindDeclaredDirectMethodByName( - chars.c_str(), kRuntimePointerSize); - } - - return method->GetCounter(); -} - } // namespace art |