OSDN Git Service

Fix how the ProfileSaver thread attaches to the runtime.
authorCalin Juravle <calin@google.com>
Thu, 28 Apr 2016 11:59:33 +0000 (12:59 +0100)
committerCalin Juravle <calin@google.com>
Fri, 29 Apr 2016 11:16:24 +0000 (12:16 +0100)
commitf39f0097c5cb6f9413f5df0558ffb24bc3221d41
tree574858115ad9893e8d6cb4a8004de65f606846fb
parentaf36e4996abd11e91faf0bb8bcd45696321b2c5d
Fix how the ProfileSaver thread attaches to the runtime.

If the runtime is shutting down we can't attach new threads. In this
case it is expected that Runtime::Attach returns nullptr.

Also, lower the serverity of the log to warning so that it does not
show up in the run-tests.

Bug: 28435649

(cherry picked from commit e55fda1373abad5ace4409453c51aeb0daaf99ef)

Change-Id: I96464d76a275d155a90a1bc3bb99fbb9d914cf20
runtime/jit/profile_saver.cc
runtime/thread.cc