summaryrefslogtreecommitdiff
path: root/compiler/jni/jni_compiler_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2022-12-01 16:17:47 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2022-12-02 15:00:55 +0000
commit7b97aebac851b345c7733d56ffe0fedf66010dbb (patch)
treeb1be8f0d36642d4d27e3e73dd63f24ba67ed7352 /compiler/jni/jni_compiler_test.cc
parent4c25ffc893541a4c3d5f6c077914633ca637406a (diff)
Remove class root duplicates from well known classes.
And get well known exception classes as declaring classes of their constructors. Also change function `ThreadForEnv()` to `Thread::ForEnv()` and use it where appropriate, mostly in code added recently while cleaning up well-known methods. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: I2ededa429863a6cddbcbb879a223277fd6245557
Diffstat (limited to 'compiler/jni/jni_compiler_test.cc')
-rw-r--r--compiler/jni/jni_compiler_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/jni/jni_compiler_test.cc b/compiler/jni/jni_compiler_test.cc
index 31ce7316a8..d1d31905c2 100644
--- a/compiler/jni/jni_compiler_test.cc
+++ b/compiler/jni/jni_compiler_test.cc
@@ -44,7 +44,7 @@
#include "oat_quick_method_header.h"
#include "runtime.h"
#include "scoped_thread_state_change-inl.h"
-#include "thread.h"
+#include "thread-inl.h"
extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_bar(JNIEnv*, jobject, jint count) {
return count + 1;
@@ -407,7 +407,7 @@ jobject JniCompilerTest::jobj_;
jobject JniCompilerTest::class_loader_;
void JniCompilerTest::AssertCallerObjectLocked(JNIEnv* env) {
- Thread* self = down_cast<JNIEnvExt*>(env)->GetSelf();
+ Thread* self = Thread::ForEnv(env);
CHECK_EQ(self, Thread::Current());
ScopedObjectAccess soa(self);
ArtMethod** caller_frame = self->GetManagedStack()->GetTopQuickFrame();