Open Bug 2057484 Opened 3 months ago Updated 3 months ago

Fix the race condition in the chunk cache

Categories

(Core :: Memory Allocator, enhancement)

enhancement

Tracking

()

People

(Reporter: pbone, Unassigned)

References

Details

A race condition in the chunk cache documented here https://searchfox.org/firefox-main/rev/9f2e8c25f0b40fdce8d2f2ca40281e8711815a6d/memory/build/Chunk.cpp#624 can allow the chunk cache to grow beyond its limit. This could be fixed if mRecycledSize was used only under the lock and a critical section was always used to check and insert items in the cache.

This race isn't dangerous, except that it can cause Firefox to use more memory than it should.

Is this a possibly unbounded growth or just a +1 chunk until next recycling thing?

You need to log in before you can comment on or make changes to this bug.