mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 23:16:30 +01:00
05041d3ab1
Original commit message:
[objects] Fix memory leak in PrototypeUsers::Add
PrototypeUsers::Add now iterates the WeakArrayList to find empty slots
before growing the array. Not reusing empty slots caused a memory leak.
It might also be desirable to shrink the WeakArrayList in the future.
Right now it is only compacted when invoking CreateBlob.
Also removed unused PrototypeUsers::IsEmptySlot declaration.
Bug: v8:10031
Change-Id: I570ec78fca37e8f0c794f1f40846a4daab47c225
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1967317
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65456}
Refs:
|
||
---|---|---|
.. | ||
acorn | ||
acorn-plugins | ||
brotli | ||
cares | ||
histogram | ||
icu-small | ||
llhttp | ||
nghttp2 | ||
node-inspect | ||
npm | ||
openssl | ||
uv | ||
uvwasi | ||
v8 | ||
zlib |