OSDN Git Service

Fix allocation tracking race
authorMathieu Chartier <mathieuc@google.com>
Tue, 23 Feb 2016 18:37:32 +0000 (10:37 -0800)
committerMathieu Chartier <mathieuc@google.com>
Tue, 23 Feb 2016 18:37:32 +0000 (10:37 -0800)
commit16e51beb9a771ffe7be833173e3dd5f2dac63892
tree88264cf5dada81a9497f906449718f3ec0e2e3c0
parent96cd22822b8b88bca6322172db018421d829f746
Fix allocation tracking race

Need to instrument the stubs before calling
Heap::SetAlloctrackingEnabled or else we can get this DCHECK failing
DCHECK(!IsAllocTrackingEnabled())

Change-Id: I1fb5df217a2785baf22b4f57887cd323f13f0973
runtime/gc/allocation_record.cc