• ulan@chromium.org's avatar
    Clear old backing store of WeakCollection on updates. · de672226
    ulan@chromium.org authored
    Not clearing can lead to a crash under following conditions:
    1. Backing store of a weak map is allocated in large object space.
    2. The backing store is marked incrementaly via the weak map.
    3. The weak map is updated and gets a new backing store.
    4. The store buffer overflows and marks the chunk of the old backing store as
    "scan on scavenge."
    5. Mark-compact collection kills some elements of the weak map. Note that the
    old backing store survives because it was marked incrementally, but its dead
    elements are not cleared.
    6. Scavenger iterates over the old backing store, tries to move a dead object
    and crashes.
    
    BUG=v8:3631
    LOG=N
    TEST=cctest/test-heap/Regress3631
    R=jkummerow@chromium.org
    
    Review URL: https://codereview.chromium.org/686783003
    
    Cr-Commit-Position: refs/heads/master@{#25032}
    git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25032 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    de672226
Name
Last commit
Last update
..
runtime-api.cc Loading commit data...
runtime-array.cc Loading commit data...
runtime-classes.cc Loading commit data...
runtime-collections.cc Loading commit data...
runtime-compiler.cc Loading commit data...
runtime-date.cc Loading commit data...
runtime-debug.cc Loading commit data...
runtime-function.cc Loading commit data...
runtime-generator.cc Loading commit data...
runtime-i18n.cc Loading commit data...
runtime-internal.cc Loading commit data...
runtime-json.cc Loading commit data...
runtime-literals.cc Loading commit data...
runtime-liveedit.cc Loading commit data...
runtime-maths.cc Loading commit data...
runtime-numbers.cc Loading commit data...
runtime-object.cc Loading commit data...
runtime-observe.cc Loading commit data...
runtime-proxy.cc Loading commit data...
runtime-regexp.cc Loading commit data...
runtime-scopes.cc Loading commit data...
runtime-strings.cc Loading commit data...
runtime-symbol.cc Loading commit data...
runtime-test.cc Loading commit data...
runtime-typedarray.cc Loading commit data...
runtime-uri.cc Loading commit data...
runtime-utils.h Loading commit data...
runtime.cc Loading commit data...
runtime.h Loading commit data...
string-builder.h Loading commit data...