mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1857841 - pt 2. Remove obsolete comment r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D200413
This commit is contained in:
parent
4189799792
commit
4ca2947b0f
@ -2694,16 +2694,6 @@ bool arena_t::SplitRun(arena_run_t* aRun, size_t aSize, bool aLarge,
|
||||
|
||||
void arena_t::InitChunk(arena_chunk_t* aChunk) {
|
||||
size_t i;
|
||||
// WARNING: The following relies on !aZeroed meaning "used to be an arena
|
||||
// chunk".
|
||||
// When the chunk we're initializating as an arena chunk is zeroed, we
|
||||
// mark all runs are decommitted and zeroed.
|
||||
// When it is not, which we can assume means it's a recycled arena chunk,
|
||||
// all it can contain is an arena chunk header (which we're overwriting),
|
||||
// and zeroed or poisoned memory (because a recycled arena chunk will
|
||||
// have been emptied before being recycled). In that case, we can get
|
||||
// away with reusing the chunk as-is, marking all runs as madvised.
|
||||
|
||||
size_t flags = CHUNK_MAP_DECOMMITTED | CHUNK_MAP_ZEROED;
|
||||
|
||||
mStats.mapped += kChunkSize;
|
||||
|
Loading…
Reference in New Issue
Block a user