summaryrefslogtreecommitdiff
path: root/test/common/runtime_state.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2016-12-19 19:45:32 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2016-12-19 19:45:32 +0000
commit263cc99a5f7a2cc81094e18b08eaa66ceed3dd1b (patch)
tree428c8889adc2f56614e90a586165a7c007908dc8 /test/common/runtime_state.cc
parent2d76677d7a2ddf8506443b3de536fb2e52b6b8b7 (diff)
parentad0c8bdc2c2e4d2a469455bcde7aeb5fc7482875 (diff)
Merge "Revert "Fix JIT crash due to unverified dead code""
Diffstat (limited to 'test/common/runtime_state.cc')
-rw-r--r--test/common/runtime_state.cc24
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