5 #include "src/zone/zone-segment.h" 12 void Segment::ZapContents() {
14 memset(reinterpret_cast<void*>(start()), kZapDeadByte, capacity());
16 MSAN_ALLOCATED_UNINITIALIZED_MEMORY(start(), capacity());
19 void Segment::ZapHeader() {
21 memset(
this, kZapDeadByte,
sizeof(Segment));
23 MSAN_ALLOCATED_UNINITIALIZED_MEMORY(start(),
sizeof(Segment));