Keep track of ArrayBuffers based on collector type, not space
authorjochen <jochen@chromium.org>
Mon, 22 Jun 2015 13:24:40 +0000 (06:24 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 22 Jun 2015 13:24:46 +0000 (13:24 +0000)
commit839170e78536f2867ab6e42872dfa87bef0e5959
treef9b0828a539053b49820691a8100175ad40a5f2f
parent2197ef2aaf544ae0806870073e3d20307dce9d9a
Keep track of ArrayBuffers based on collector type, not space

Since Mark/Compact also collects garbage in the new space, we can't just
free old space ArrayBuffers during MC - otherwise we run the risk of
never freeing new array buffers

BUG=v8:4201
R=hpayer@chromium.org
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#29190}
src/heap/heap.cc
src/heap/heap.h
src/heap/objects-visiting-inl.h