• binji's avatar
    Fix bug when transferring SharedArrayBuffer to multiple Workers. · dd7962bf
    binji authored
    Previously, the serialization code would call Externalize for every transferred
    ArrayBuffer or SharedArrayBuffer, but that function can only be called once. If
    the buffer is already externalized, we should call GetContents instead.
    
    Also fix use-after-free bug when transferring ArrayBuffers. The transferred
    ArrayBuffer must be internalized in the new isolate, or be managed by the
    Shell. The current code gives it to the isolate externalized and frees it
    immediately afterward when the SerializationData object is destroyed.
    
    BUG=chromium:497295
    R=jarin@chromium.org
    LOG=n
    
    Review URL: https://codereview.chromium.org/1215233004
    
    Cr-Commit-Position: refs/heads/master@{#29499}
    dd7962bf
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
test262-es6 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...