OSDN Git Service

Merge "Ensure we have a profiling info object before trying to compile."
authorNicolas Geoffray <ngeoffray@google.com>
Thu, 9 Jun 2016 12:38:42 +0000 (12:38 +0000)
committerGerrit Code Review <noreply-gerritcodereview@google.com>
Thu, 9 Jun 2016 12:38:42 +0000 (12:38 +0000)
1  2 
test/604-hot-static-interface/hot_static_interface.cc

@@@ -49,9 -52,9 +52,9 @@@ extern "C" JNIEXPORT void JNICALL Java_
        break;
      } else {
        // Sleep to yield to the compiler thread.
 -      sleep(0);
 +      usleep(1000);
        // Will either ensure it's compiled or do the compilation itself.
-       jit->CompileMethod(method, Thread::Current(), /* osr */ false);
+       jit->CompileMethod(method, soa.Self(), /* osr */ false);
      }
    }
  }