Fix minor GC bugs found by Claude
Categories
(Core :: JavaScript: GC, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox151 | --- | fixed |
People
(Reporter: jonco, Assigned: jonco)
References
(Blocks 1 open bug)
Details
Attachments
(8 external files)
Jan got Claude to audit the GC code which found a number of minor issues. Most were trivial or decent suggestions for improvements.
Updated•8 months ago
|
| Assignee | ||
Comment 1•8 months ago
|
||
This patch does the following:
- Remove MallocSizeOf parameter from MarkStack::sizeOfExcludingThis
- Remove unused IsAboutToBeFinalizedDuringMinorSweep
- Fix dereference of |cell| before non null assertion in PerformIncrementalPreWriteBarrier
| Assignee | ||
Comment 2•8 months ago
|
||
This patch does the following:
- Don't record memory allocation on OOM in MapAlignedPages
- Fix GetNumberInRange when max == min and add assertion
- Make MapAlignedPagesRandom more check for overflow
- Skip unnecessary unmap in MapAlignedPagesLastDitch on failure
| Assignee | ||
Comment 3•8 months ago
|
||
This patch makes the following changes:
- Make Nursery::allocateZeroedBuffer more defensive and remove unsued overload
| Assignee | ||
Comment 4•8 months ago
|
||
This patch does the following:
- Remove an assertion that doesn't hold any more in AllocSite::initialHeap
- Fix double counting of missing alloc sites
- Fix missing case in AllocSiteKindName
- Assert we only use the optimized alloc size for objects
| Assignee | ||
Comment 5•8 months ago
|
||
This patch makes the follow changes:
- Assert SlotsEdge is valid after merge
- Add null check when clearing whole cell buffer storage
- Strengthen assertion in JSLinearString::maybeCloneCharsOnPromotionTyped
| Assignee | ||
Comment 6•8 months ago
|
||
It turns out this is no longer used so we can remove it.
| Assignee | ||
Comment 7•8 months ago
|
||
This patch does the following:
- Remove possible UB when calling TraceRange on zero length range
- Make both pre barrier verifier tracers use the same tracer options
- Remove duplicate tracing of WeakMap::memberOf also traced by trace() method
| Assignee | ||
Comment 8•8 months ago
|
||
This patch makes the following changes:
- Assert perserve wrapper callback doesn't cause more wrappers to be preserved
- Handle error from MaybePreserveDOMWrapper
Comment 10•8 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/fd01858f8fd8
https://hg.mozilla.org/mozilla-central/rev/421b14d13b1c
https://hg.mozilla.org/mozilla-central/rev/afa2e718980d
https://hg.mozilla.org/mozilla-central/rev/259490abe9de
https://hg.mozilla.org/mozilla-central/rev/ffb52f598585
https://hg.mozilla.org/mozilla-central/rev/945f72920669
https://hg.mozilla.org/mozilla-central/rev/79a3c6df442c
https://hg.mozilla.org/mozilla-central/rev/163974e11f1a
Description
•