diff options
Diffstat (limited to 'compiler/jni/jni_compiler_test.cc')
-rw-r--r-- | compiler/jni/jni_compiler_test.cc | 4 |
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(); |