OSDN Git Service

Doh. Forgot to ensure it's compiled.
authorNicolas Geoffray <ngeoffray@google.com>
Thu, 28 Jan 2016 18:15:53 +0000 (18:15 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Thu, 28 Jan 2016 18:15:53 +0000 (18:15 +0000)
Change-Id: I7b1786497c6bd0e83d8afe70fabecfacc8ca6a3a

test/566-polymorphic-inlining/polymorphic_inline.cc

index 5801b36..55eac5c 100644 (file)
@@ -29,6 +29,8 @@ static void do_checks(jclass cls, const char* method_name) {
   jit::Jit* jit = Runtime::Current()->GetJit();
   jit::JitCodeCache* code_cache = jit->GetCodeCache();
   ArtMethod* method = klass->FindDeclaredDirectMethodByName(method_name, sizeof(void*));
+  jit->CompileMethod(method, soa.Self());
+
   OatQuickMethodHeader* header = OatQuickMethodHeader::FromEntryPoint(
       method->GetEntryPointFromQuickCompiledCode());
   CHECK(code_cache->ContainsPc(header->GetCode()));