Commit 7ee11cde authored by Omer Katz's avatar Omer Katz Committed by Commit Bot

heap: Don't check unused slot during Vector::Trace

Vector::Trace used to check that all unused slots are zeroed out.
This is a hidden assumption that the Vector cannot be changed while
it is traced. This assumption will no longer once Vectors are traced
concurrently.

Bug: 986235
Change-Id: I05e1270f92f0542595e2c87c776cbf58a785e8cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2015245Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Omer Katz <omerkatz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746820}
parent c72a2531
......@@ -2017,7 +2017,6 @@ Vector<T, inlineCapacity, Allocator>::Trace(VisitorDispatcher visitor) {
Allocator::template Trace<T, VectorTraits<T>>(
visitor, *const_cast<T*>(buffer_entry));
}
CheckUnusedSlots(Buffer() + size(), Buffer() + capacity());
}
}
}
......
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