OSDN Git Service

Fix JIT initialization race
authorbuzbee <buzbee@google.com>
Wed, 1 May 2013 17:22:28 +0000 (10:22 -0700)
committerAndy McFadden <fadden@android.com>
Thu, 2 May 2013 22:01:21 +0000 (22:01 +0000)
commitf85b49fedc9367dfc0554a2b27115e046cc4dfec
tree425341155d8e97c2f76b289f93a790ff3ab07eca
parent9b4204c1e265ad8b8c4fe4e671f91d1cd0e4ab4e
Fix JIT initialization race

See b/8767735 Slow thread in thread spin test

A race exists in thread creation/JIT initialization that can
leave the JIT permanantly disabled for a thread (typically
the first interpreter thread).

(cherry-pick from master If6fcac93a229edf068eb02ceceb374e3dc284b78)

Change-Id: I120af6f753984d63d43122ea30db102bd1d5cc63
vm/interp/Interp.cpp