DescriptionIntroduce (Heap)Vector trait covering zero'ed memory for unused slots.
When a slot/index in a heap vector's backing storage is marked as unused,
its value must be cleared out. This so as to prevent later GC tracing or
finalization of the backing storage from incorrectly interpreting those
bits. The heap vector handles such unused slots by zero-ing out the block
of memory it maps to; if that zero'ed block of memory doesn't represent
a valid instance of a class type, it cannot be used in heap vectors.
Introduce a vector trait controlling if a memset()-zero'ed slot represents
a valid value for the Oilpan GC infrastructure to interpret when tracing
and finalizing that value. It is needed for the class types where the
default constructor maps to a representation that isn't all zero, but
that zero'ed representation is still valid for the Oilpan GC to interpret.
R=haraken,tkent
BUG=420515
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197100
Patch Set 1 #Patch Set 2 : rebased #
Messages
Total messages: 7 (2 generated)
|