Commit d7be7f15 authored by Michael Lippautz's avatar Michael Lippautz Committed by V8 LUCI CQ

[objects] Update comment for zombie state on AllocationSite

Change-Id: Iac90033d689111e8a2384bee357e7f282cc33db7
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3596168Reviewed-by: 's avatarHannes Payer <hpayer@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: 's avatarDominik Inführ <dinfuehr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80060}
parent c6988630
......@@ -107,9 +107,11 @@ class AllocationSite : public Struct {
// it may be that in new space there are AllocationMementos hanging around
// which point to the AllocationSite. If we scavenge these AllocationSites
// too soon, those AllocationMementos will end up pointing to garbage
// addresses. The garbage collector marks such AllocationSites as zombies
// when it discovers there are no roots, allowing the subsequent collection
// pass to recognize zombies and discard them later.
// addresses. The concrete case happens when evacuating new space in the full
// GC which happens after sweeping has been started already. To mitigate this
// problem the garbage collector marks such AllocationSites as zombies when it
// discovers there are no roots, allowing the subsequent collection pass to
// recognize zombies and discard them later.
inline bool IsZombie() const;
inline bool IsMaybeTenure() const;
......
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