OSDN Git Service

ART: Add ScopedJitSuspend
authorAndreas Gampe <agampe@google.com>
Wed, 16 Nov 2016 22:58:24 +0000 (14:58 -0800)
committerAndreas Gampe <agampe@google.com>
Thu, 17 Nov 2016 16:33:16 +0000 (08:33 -0800)
commitf149b3fc6fd315d34244bce709898fdbbddc246f
tree34cc0b2f23865db2c065a9e19cf624290e6f2250
parent6f3a70f316f2f3dcde5b3bde5fb258c556c46da6
ART: Add ScopedJitSuspend

Add a helper to suspend the JIT in a scope. This will
wait for the JIT to quiesce, finishing already running
compile jobs. Note that the queue will not be drained,
jobs not picked up by the pool, yet, will remain in
the queue.

Bug: 31385354
Test: m test-art-host
Change-Id: I576e7926423f19a8f382be1263838cd924955f1c
runtime/jit/jit.cc
runtime/jit/jit.h