Lines Matching full:keep
131 // Find a segment with a suitable size to keep around.
132 Segment* keep = nullptr;
134 // and freeing every segment except the one we wish to keep.
137 if (!keep && current->size() <= kMaximumKeptSegmentSize) {
138 // Unlink the segment we wish to keep from the list.
139 keep = current;
140 keep->clear_next();
154 // If we have found a segment we want to keep, we must recompute the
158 if (keep) {
159 Address start = keep->start();
161 limit_ = keep->end();
163 ASAN_UNPOISON_MEMORY_REGION(start, keep->capacity());
166 memset(start, kZapDeadByte, keep->capacity());
174 segment_head_ = keep;