commit | 011dc2c4b9f3a064cba801679aedd3251fe191e3 | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Mon Jul 18 11:11:45 2016 -0700 |
committer | Mathieu Chartier <mathieuc@google.com> | Mon Jul 18 15:02:27 2016 -0700 |
tree | 08924388d8a91759c8aa7acfc1bc53153605e4df | |
parent | 4c489f48ef432126b8e7a84b61c1c13a7514c085 [diff] |
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 Change-Id: I0f2d4097de1ef3f5caf670ecc977d4d6837872ca