OSDN Git Service

Prevent holding stale Thread pointers
authorMathieu Chartier <mathieuc@google.com>
Mon, 18 Apr 2016 18:43:29 +0000 (11:43 -0700)
committerMathieu Chartier <mathieuc@google.com>
Mon, 18 Apr 2016 21:25:18 +0000 (14:25 -0700)
commit81c170fede9af9174aba71428334ac8f366a4b4f
treeea508c192bc79dbe76d41eb32959280794f73e37
parentad0b769e15eeb62963d543811a960deb6f309adf
Prevent holding stale Thread pointers

It is only really safe to hold non-self Thread* if you hold the
thread list lock. Changed a few places to use thread ids instead
of Thread.

Bug: 28223501

Change-Id: Ie58bd755bf1dcf3c1f37da79ba0b2507f77574dd
runtime/monitor.cc
runtime/monitor.h
runtime/thread.h
runtime/thread_list.cc
runtime/thread_list.h