| Index: src/zone/zone-segment.h
|
| diff --git a/src/zone/zone-segment.h b/src/zone/zone-segment.h
|
| index 140112c102bd85864c5683c0053d880a5f03562c..d37cf5648dc3f54ed648ef5851d8bde2a24e35f6 100644
|
| --- a/src/zone/zone-segment.h
|
| +++ b/src/zone/zone-segment.h
|
| @@ -38,7 +38,16 @@ class Segment {
|
| Address start() const { return address(sizeof(Segment)); }
|
| Address end() const { return address(size_); }
|
|
|
| + // Zap the contents of the segment (but not the header).
|
| + void ZapContents();
|
| + // Zaps the header and makes the segment unusable this way.
|
| + void ZapHeader();
|
| +
|
| private:
|
| +#ifdef DEBUG
|
| + // Constant byte value used for zapping dead memory in debug mode.
|
| + static const unsigned char kZapDeadByte = 0xcd;
|
| +#endif
|
| // Computes the address of the nth byte in this segment.
|
| Address address(size_t n) const { return Address(this) + n; }
|
|
|
|
|