OSDN Git Service

Fix JIT initialization race
authorbuzbee <buzbee@google.com>
Wed, 1 May 2013 17:22:28 +0000 (10:22 -0700)
committerElliott Hughes <enh@google.com>
Wed, 1 May 2013 19:01:19 +0000 (12:01 -0700)
commitbc3736f7a4b86b368b9041d9f371eb06e608b296
treeab95758dd0b516ac06d9e0ea4a1ea0f073579968
parent15554a2f2d4920357f6cf1a0505a178de3781f77
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 of 67985d960f5c877f86d0bba251d2d55c7a062b8d.)

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