OSDN Git Service

Fix bug in WaitForCompilationToFinish
authorMathieu Chartier <mathieuc@google.com>
Fri, 25 Sep 2015 21:39:40 +0000 (14:39 -0700)
committerMathieu Chartier <mathieuc@google.com>
Fri, 25 Sep 2015 21:56:02 +0000 (14:56 -0700)
commit36c0136e848e14993ad8e0f85c94caae14e2246a
tree53c3cc1559a448297873051610eae08f19d5f406
parenta6af255cb93f25737110c3efa8595dd843eecb12
Fix bug in WaitForCompilationToFinish

We now pass the barrier inside of Finalize, previously we did it in
Run. This was buggy since Finalize is called after Run and there was
a race condition where WaitForCompilationToFinish would delete the
task before we called Finalize.

Change-Id: I3f624fa9cdfcf2b266775c6927c336fb987dd58c
runtime/jit/jit_instrumentation.cc