Skip write barriers when updating the weak hash table.
authorulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 14 May 2014 09:12:21 +0000 (09:12 +0000)
committerulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 14 May 2014 09:12:21 +0000 (09:12 +0000)
commit876b48f384750a9b90ebe80f826f69c77f2710d2
tree63fb26059dfd0af5f8d77f56d2c127cd36573b16
parentf5631f737835f33638b1f0b4978d45aa7b192350
Skip write barriers when updating the weak hash table.

Write barrier on the weak hash table makes all its pointers strong,
which can cause a memory leak.

BUG=359401
LOG=Y
TEST=cctest/test-heap/NoWeakHashTableLeakWithIncrementalMarking
R=hpayer@chromium.org, mstarzinger@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21299 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/heap.cc
src/mark-compact.cc
src/objects.cc
test/cctest/test-heap.cc