Commit c60e772c authored by Dominik Inführ's avatar Dominik Inführ Committed by Commit Bot

[handles] Do not zap new blocks for local handles

Not needed in order to prevent use-after-frees.

Bug: v8:10315
Change-Id: I7713b2fb39681bb88e60fc7cc417b40430f0c73c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2326031Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69175}
parent c7d22c49
......@@ -54,9 +54,6 @@ bool LocalHandles::Contains(Address* location) {
Address* LocalHandles::AddBlock() {
DCHECK_EQ(scope_.next, scope_.limit);
Address* block = NewArray<Address>(kHandleBlockSize);
#ifdef ENABLE_HANDLE_ZAPPING
ZapRange(block, block + kHandleBlockSize);
#endif
blocks_.push_back(block);
scope_.next = block;
scope_.limit = block + kHandleBlockSize;
......
Markdown is supported
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