Description[heap] Make LiveObjectIterator concurrency safe
LiveObjectIterator sometimes runs concurrently to the main thread. In this
scenarios we are not allowed to access memory of live objects in non-atomic
ways. Use synchronized reads where needed.
Correctness (already ok in current state):
- Reading a larger size is fine per definition.
- Reading a smaller size is fine since are guaranteed that one word fillers will
follow.
BUG=v8:5583
R=ulan@chromium.org,hpayer@chromium.org
Committed: https://crrev.com/142d4f97c009b1d9898448308da07ff7a7f0b3cf
Cr-Commit-Position: refs/heads/master@{#40798}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Use no barrier read for map #Patch Set 3 : Use right address #Patch Set 4 : Fix condition #
Messages
Total messages: 20 (10 generated)
|