OSDN Git Service

Fix HandleScope with wrong thread error
authorMathieu Chartier <mathieuc@google.com>
Fri, 9 Jan 2015 17:46:49 +0000 (09:46 -0800)
committerMathieu Chartier <mathieuc@google.com>
Fri, 9 Jan 2015 18:01:41 +0000 (10:01 -0800)
commitbef89c910dc40f7e82ee56c3c8e8fdaa0cd5562b
tree42a5a28ce6c8f3a0f51067397f989a0be457ec6c
parent46af48acf4221a7f819d58dfffb576d0523ae285
Fix HandleScope with wrong thread error

Possibly fixes
+art F  5127  6995 art/runtime/handle_scope-inl.h:43]
Check failed: top_handle_scope == this
(top_handle_scope=0x2b449293c770, this=0x2b4492d6a0a8)
Seen in tests. A possible cause was that the thread dumping stacks
was running checkpoints on a suspended thread but putting a
HandleScope on that thread instead of itself. This isn't safe if the
suspended thread is doing HandleScope stuff in a non runnable state.

Change-Id: Icdaadabca5aff8d380d5cc9570b9e899fe790a62
runtime/handle_scope-inl.h
runtime/thread.cc