Commit 2d857af2 authored by Mathieu Chartier's avatar Mathieu Chartier
Browse files

Do allocation fence before pushing on allocation stack

Heap::VisitObjects relies on having valid classes for objects in
the allocation stack. If the writes reorder, the thread calling
VisitObjects could see the free list pointer instead of the class
of the object. I believe this is causing crashes in VisitObjects.

Bug: 28790624

Test: Volantis booted

(cherry picked from commit 011dc2c4)

Change-Id: Ib620acbcd641ccd59fea9a66f5587c5026110a22
parent 80d33762
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment