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:07:45 +0000 (11:07 +0000)
commite55fda1373abad5ace4409453c51aeb0daaf99ef
tree65716ea1f97405109f7a40dc87a590f245ac9cfb
parent6caaa84947d5d207cde511978db327d95226e3ce
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
Change-Id: I208bcd6f0f7e35ae6471e263dee00d3ab68b3b8f
runtime/jit/profile_saver.cc
runtime/thread.cc