Re-enable test 566-polymorphic-inlining.

- Can not rely on debug builds.
- Need to wait for the method to be compiled.

Change-Id: I26ce89075075da8555fd59ade56bd04bec23f4ce
diff --git a/runtime/jit/jit_code_cache.cc b/runtime/jit/jit_code_cache.cc
index c6e7fef..b0e5fde 100644
--- a/runtime/jit/jit_code_cache.cc
+++ b/runtime/jit/jit_code_cache.cc
@@ -738,15 +738,8 @@
     return false;
   }
 
-  // Compiling requires a profiling info object to notify compilation. Create
-  // one if it hasn't been done before.
-  ProfilingInfo* info = method->GetProfilingInfo(sizeof(void*));
-  if (info == nullptr) {
-    ProfilingInfo::Create(self, method, /* retry_allocation */ true);
-  }
-
   MutexLock mu(self, lock_);
-  info = method->GetProfilingInfo(sizeof(void*));
+  ProfilingInfo* info = method->GetProfilingInfo(sizeof(void*));
   if (info == nullptr || info->IsMethodBeingCompiled()) {
     return false;
   }