When reading the map from a live object, use a barrier load
authorjochen <jochen@chromium.org>
Thu, 11 Dec 2014 15:25:23 +0000 (07:25 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 11 Dec 2014 15:25:30 +0000 (15:25 +0000)
commitb7caca9f9a386d288c15935646997d59bafc3ffd
tree7ec9d881527cd5e3d67c948a958adabddb514e27
parentd0cad384b2db7139978cd9d4bf8135871566c72c
When reading the map from a live object, use a barrier load

It could happen that we shrink a live object on the main thread (e.g.
MigrateFastToSlow) while we're sweeping the same page. The main
thread first creates a filler object that the release-stores the new
map. Therefore it's important to barrier load the map word of live
objects from the sweeper thread.

BUG=none
R=ulan@chromium.org,hpayer@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/797623002

Cr-Commit-Position: refs/heads/master@{#25780}
src/heap/mark-compact.cc