diff options
Diffstat (limited to 'runtime/jni_internal.cc')
-rw-r--r-- | runtime/jni_internal.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/jni_internal.cc b/runtime/jni_internal.cc index 6063e1e..566b097 100644 --- a/runtime/jni_internal.cc +++ b/runtime/jni_internal.cc @@ -164,8 +164,10 @@ static mirror::ClassLoader* GetClassLoader(const ScopedObjectAccess& soa) // See if the override ClassLoader is set for gtests. class_loader = soa.Decode<mirror::ClassLoader*>(soa.Self()->GetClassLoaderOverride()); if (class_loader != nullptr) { - // If so, CommonCompilerTest should have set UseCompileTimeClassPath. - CHECK(Runtime::Current()->UseCompileTimeClassPath()); + // If so, CommonCompilerTest should have marked the runtime as a compiler not compiling an + // image. + CHECK(Runtime::Current()->IsAotCompiler()); + CHECK(!Runtime::Current()->GetCompilerCallbacks()->IsBootImage()); return class_loader; } // Use the BOOTCLASSPATH. |