Commit 16f86d6c authored by Trevor Norris's avatar Trevor Norris
Browse files

buffer: always allocate typed arrays outside heap

By default v8 allocates typed arrays <= 64 bytes inside the v8 heap. In
these cases the memory pointer returned by Buffer::Data() can change
while the memory is being operated on. Resolve by passing a flag that
forces all typed arrays outside the v8 heap.

Fixes: 74178a56 "buffer: construct Uint8Array in JS"
PR-URL: https://github.com/nodejs/node/pull/2893


Reviewed-By: default avatarFedor Indutny <fedor@indutny.com>
parent 74178a56
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment