Commit Graph
81 Commits
Author SHA1 Message Date
Paul Bone 1879025654 Bug 2014781 - Restore the sub-page size class r=glandium
This reverts Bug 1980056 part 6.

Differential Revision: https://phabricator.services.mozilla.com/D297237
2026-05-31 23:27:24 +00:00
Paul Bone 9bb5296e61 Bug 2035696 - Set a minimum run size r=glandium
The more regions (cells) in a run the more allocations can stay on the
"hot path".  This can have a performance improvment on Linux and Windows
that corresponds to the larger page size on MacOS.  On MacOS the larger
page size already implies more regions in a run.

Differential Revision: https://phabricator.services.mozilla.com/D297242
2026-05-27 01:36:17 +00:00
Silaghi 688b962a0b Revert "Bug 2014781 - gPageSize follows gRealPageSize r=glandium" for causing mochitests failures at toolkit/content
This reverts commit 3c629953cf.

Revert "Bug 2014781 - Restore the sub-page size class r=glandium"

This reverts commit 606f7ea614.
2026-05-14 07:39:36 +00:00
Paul Bone 606f7ea614 Bug 2014781 - Restore the sub-page size class r=glandium
This reverts Bug 1980056 part 6.

Differential Revision: https://phabricator.services.mozilla.com/D297237
2026-05-14 03:15:33 +00:00
Paul Bone ae941d2b62 Bug 1976184 - pt 17. Implement BaseAlloc::realloc r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D269187
2026-04-10 08:28:28 +00:00
Paul Bone be1d259161 Bug 1976184 - pt 13. Support cell splitting r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D268994
2026-04-10 08:28:12 +00:00
Paul Bone af5b782d6f Bug 1976184 - pt 12. Support cell merging r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D268993
2026-04-10 08:28:09 +00:00
Paul Bone 960c47a816 Bug 1976184 - pt 9. Improve free list organisation r=glandium
Introduce a "quantum" cell size so that free lists only ever contain
objects of the same size which improves cell reuse.

Differential Revision: https://phabricator.services.mozilla.com/D268991
2026-04-10 08:27:58 +00:00
Paul Bone cad8915c5c Bug 1976184 - pt 8. Use a RB tree for the oversize free list r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D268990
2026-04-10 08:27:54 +00:00
Paul Bone e47430e6e6 Bug 1976184 - pt 4. Add a test case for the base allocator r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D269173
2026-04-10 08:27:38 +00:00
agoloman 3d79cb6434 Revert "Bug 1976184 - pt 22. Release whole cells when freeing if possible r=glandium" for causing gtest failures @BaseAlloc.cpp.
This reverts commit cf54ef3dc5.

Revert "Bug 1976184 - pt 21. Try to satisfy an allocation by merging decommitted cells r=glandium"

This reverts commit 0b7c5bbd1d.

Revert "Bug 1976184 - pt 20. Add internal validation to BaseAlloc r=sergesanspaille"

This reverts commit ab036c4f66.

Revert "Bug 1976184 - pt 19. Make more memory around decommitted memory usable r=glandium"

This reverts commit c5b9d10995.

Revert "Bug 1976184 - pt 18. Decommit remainder of new chunks in BaseAlloc r=glandium"

This reverts commit 052329bd73.

Revert "Bug 1976184 - pt 17. Implement BaseAlloc::realloc r=glandium"

This reverts commit 519a7c6a97.

Revert "Bug 1976184 - pt 16. Remove wilderness allocation from BaseAlloc r=glandium"

This reverts commit 0941744917.

Revert "Bug 1976184 - pt 15. Refactor alloc path r=glandium"

This reverts commit e6ce068881.

Revert "Bug 1976184 - pt 14. Add logging to the BaseAllocator r=glandium"

This reverts commit 0378eddc45.

Revert "Bug 1976184 - pt 13. Support cell splitting r=glandium"

This reverts commit b8db220858.

Revert "Bug 1976184 - pt 12. Support cell merging r=glandium"

This reverts commit 18e891f9de.

Revert "Bug 1976184 - pt 11. Add the previous cells size to the metadata r=glandium"

This reverts commit 44abe2e601.

Revert "Bug 1976184 - pt 10. Make the size to free list mapping more efficient r=glandium"

This reverts commit b7acd4f76a.

Revert "Bug 1976184 - pt 9. Improve free list organisation r=glandium"

This reverts commit bef5da84f5.

Revert "Bug 1976184 - pt 8. Use a RB tree for the oversize free list r=glandium"

This reverts commit ca4532ff0e.

Revert "Bug 1976184 - pt 7. Move some BaseAlloc structures to a new header r=glandium"

This reverts commit f193759d4d.

Revert "Bug 1976184 - pt 6. Refactor RedBlackTree::Search r=glandium"

This reverts commit 790777fb8d.

Revert "Bug 1976184 - pt 5. Add an allocated bit r=glandium"

This reverts commit 440d0b6667.

Revert "Bug 1976184 - pt 4. Add a test case for the base allocator r=glandium"

This reverts commit 10a579aedf.

Revert "Bug 1976184 - pt 3. Add a usable_size() function r=glandium"

This reverts commit fc1e6c1372.

Revert "Bug 1976184 - pt 2. Remove the type based free list r=glandium"

This reverts commit 2d3867161e.

Revert "Bug 1976184 - pt 1. Add free list allocation to the base allocator r=glandium"

This reverts commit 53cda19c58.
2026-04-08 14:19:56 +00:00
Paul Bone 519a7c6a97 Bug 1976184 - pt 17. Implement BaseAlloc::realloc r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D269187
2026-04-08 12:11:43 +00:00
Paul Bone b8db220858 Bug 1976184 - pt 13. Support cell splitting r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D268994
2026-04-08 12:11:31 +00:00
Paul Bone 18e891f9de Bug 1976184 - pt 12. Support cell merging r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D268993
2026-04-08 12:11:28 +00:00
Paul Bone bef5da84f5 Bug 1976184 - pt 9. Improve free list organisation r=glandium
Introduce a "quantum" cell size so that free lists only ever contain
objects of the same size which improves cell reuse.

Differential Revision: https://phabricator.services.mozilla.com/D268991
2026-04-08 12:11:19 +00:00
Paul Bone ca4532ff0e Bug 1976184 - pt 8. Use a RB tree for the oversize free list r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D268990
2026-04-08 12:11:16 +00:00
Paul Bone 10a579aedf Bug 1976184 - pt 4. Add a test case for the base allocator r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D269173
2026-04-08 12:11:04 +00:00
Cosmin Sabou bbb420bba3 Revert "Bug 1976184 - pt 22. Release whole cells when freeing if possible r=glandium" for causing SM bustages on BaseAllocInternals.
This reverts commit a8cc298882.

Revert "Bug 1976184 - pt 21. Try to satisfy an allocation by merging decommitted cells r=glandium"

This reverts commit 10498cc042.

Revert "Bug 1976184 - pt 20. Add internal validation to BaseAlloc r=sergesanspaille"

This reverts commit 2cb726424d.

Revert "Bug 1976184 - pt 19. Make more memory around decommitted memory usable r=glandium"

This reverts commit 7fa3a3781f.

Revert "Bug 1976184 - pt 18. Decommit remainder of new chunks in BaseAlloc r=glandium"

This reverts commit 8b9666721b.

Revert "Bug 1976184 - pt 17. Implement BaseAlloc::realloc r=glandium"

This reverts commit 698f760cfa.

Revert "Bug 1976184 - pt 16. Remove wilderness allocation from BaseAlloc r=glandium"

This reverts commit dd68acf2ee.

Revert "Bug 1976184 - pt 15. Refactor alloc path r=glandium"

This reverts commit 552670ac4b.

Revert "Bug 1976184 - pt 14. Add logging to the BaseAllocator r=glandium"

This reverts commit 447fc0e66e.

Revert "Bug 1976184 - pt 13. Support cell splitting r=glandium"

This reverts commit 92cc0dd6ad.

Revert "Bug 1976184 - pt 12. Support cell merging r=glandium"

This reverts commit 89c64d1ec2.

Revert "Bug 1976184 - pt 11. Add the previous cells size to the metadata r=glandium"

This reverts commit d5c17f0234.

Revert "Bug 1976184 - pt 10. Make the size to free list mapping more efficient r=glandium"

This reverts commit f120dda336.

Revert "Bug 1976184 - pt 9. Improve free list organisation r=glandium"

This reverts commit 891183bd4f.

Revert "Bug 1976184 - pt 8. Use a RB tree for the oversize free list r=glandium"

This reverts commit bd7857f56e.

Revert "Bug 1976184 - pt 7. Move some BaseAlloc structures to a new header r=glandium"

This reverts commit 0933ec0ea4.

Revert "Bug 1976184 - pt 6. Refactor RedBlackTree::Search r=glandium"

This reverts commit 60ce51a113.

Revert "Bug 1976184 - pt 5. Add an allocated bit r=glandium"

This reverts commit 34f1ceb178.

Revert "Bug 1976184 - pt 4. Add a test case for the base allocator r=glandium"

This reverts commit d5c2faca9f.

Revert "Bug 1976184 - pt 3. Add a usable_size() function r=glandium"

This reverts commit bb06068462.

Revert "Bug 1976184 - pt 2. Remove the type based free list r=glandium"

This reverts commit e4c837ddf7.

Revert "Bug 1976184 - pt 1. Add free list allocation to the base allocator r=glandium"

This reverts commit 5ae2c9e2c8.
2026-04-08 07:18:44 +00:00
Paul Bone 698f760cfa Bug 1976184 - pt 17. Implement BaseAlloc::realloc r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D269187
2026-04-08 06:51:17 +00:00
Paul Bone 92cc0dd6ad Bug 1976184 - pt 13. Support cell splitting r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D268994
2026-04-08 06:51:05 +00:00
Paul Bone 89c64d1ec2 Bug 1976184 - pt 12. Support cell merging r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D268993
2026-04-08 06:51:02 +00:00
Paul Bone 891183bd4f Bug 1976184 - pt 9. Improve free list organisation r=glandium
Introduce a "quantum" cell size so that free lists only ever contain
objects of the same size which improves cell reuse.

Differential Revision: https://phabricator.services.mozilla.com/D268991
2026-04-08 06:50:53 +00:00
Paul Bone bd7857f56e Bug 1976184 - pt 8. Use a RB tree for the oversize free list r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D268990
2026-04-08 06:50:50 +00:00
Paul Bone d5c2faca9f Bug 1976184 - pt 4. Add a test case for the base allocator r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D269173
2026-04-08 06:50:38 +00:00
Sylvestre Ledru f7691d9032 Bug 2023419 - Remove Emacs/Vim modelines from memory/ r=emilio
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287854
2026-03-17 12:05:51 +00:00
Paul Bone 2ec92a906e Bug 1980056 - pt 6. Remove the sub-page size class r=glandium
With page size limited to 4KiB and the quantum-wide class covering the
range from 512 bytes to 4KiB, the sub-page size class is unused and can
be removed.

Differential Revision: https://phabricator.services.mozilla.com/D259220
2026-02-03 04:14:10 +00:00
Paul Bone f3df305fd2 Bug 1980056 - pt 2. Use real page size in one of the jemalloc tests r=glandium
The test uses page size to calculate the size of the chunk header for
testing jemalloc_ptr_info.  Using real page size is correct for finding
the size of the chunk header.

Differential Revision: https://phabricator.services.mozilla.com/D280544
2026-02-03 04:13:58 +00:00
agoloman 15e87a3496 Revert "Bug 1980056 - pt 2. Remove the sub-page size class r=glandium" for causing Bug 2010505.
This reverts commit 784e006a34.

Revert "Bug 1980056 - pt 1. Limit logical page size to 4KiB r=glandium"

This reverts commit 01d083e3c6.
2026-01-16 04:20:26 +00:00
Paul Bone 784e006a34 Bug 1980056 - pt 2. Remove the sub-page size class r=glandium
With page size limited to 4KiB and the quantum-wide class covering the
range from 512 bytes to 4KiB, the sub-page size class is unused and can
be removed.

Differential Revision: https://phabricator.services.mozilla.com/D259220
2026-01-15 03:30:13 +00:00
serge-sans-paille 7662b3abdc Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 19:36:01 +00:00
Cristina Horotan 8a1b1970b7 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing Gtest failures on AlreadyAddRefed.h
This reverts commit e98adca292.
2025-10-21 16:16:29 +00:00
serge-sans-paille e98adca292 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 15:05:17 +00:00
Cristina Horotan aab924e90d Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing build bustage at nsBrowserApp.cpp
This reverts commit fd0ffa193c.
2025-10-21 10:44:13 +00:00
serge-sans-paille fd0ffa193c Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 09:44:11 +00:00
Narcis Beleuzu e1e6bbb1c9 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing bustages on Document.cpp
This reverts commit b23c15e927.
2025-10-21 06:34:58 +00:00
serge-sans-paille b23c15e927 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 06:01:36 +00:00
Mike Hommey 4c05eed956 Bug 1977307 - Initialize otherwise unused stack variable to appease clang. r=pbone
clang trunk has a new warning that we turn into an error:
```
TestJemalloc.cpp:214:22: error: variable 'stackVar' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
```

Differential Revision: https://phabricator.services.mozilla.com/D257399
2025-07-28 21:47:34 +00:00
Paul Bone f2973aa9fb Bug 1806054 - pt 4. Add a jemalloc_stats_lite interface r=glandium
This new method collects less information and also does not need to lock
arenas to access their stats.  It may be used on any thread.

The main thread only arenas thread-safety rules have become more complex and
I've added a comment to explain what is safe.

Differential Revision: https://phabricator.services.mozilla.com/D225942
2025-01-08 03:15:54 +00:00
Sylvestre Ledru a3ea006705 Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,necko-reviewers,geckoview-reviewers,application-update-reviewers,media-playback-reviewers,devtools-reviewers,anti-tracking-reviewers,profiler-reviewers,win-reviewers,migration-reviewers,padenot,mconley,nchevobbe,kershaw,gstoll,mstange,bytesized,m_kato
This new version of clang 17 also slightly changed the formatting.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D215914
2024-07-17 11:15:31 +00:00
Paul Bone 87234a6556 Bug 1864828 - pt 1. Move operators to create literals with units into mfbt/ r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D194950
2023-12-11 11:01:33 +00:00
Paul Bone 3fec5a84b4 Bug 1854550 - pt 9. Move PHC interface from the bridge to PHC.h r=glandium
Building PHC in a unified build now also works.

Differential Revision: https://phabricator.services.mozilla.com/D191133
2023-10-19 06:38:42 +00:00
Paul Bone 08c2a68d95 Bug 1858137 - Update test to match new poisoning behaviour r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D190775
2023-10-13 12:43:44 +00:00
Alexandre Lissy d7448123e7 Bug 1798711 - Remove duplication of DisableCrashReporter on gtest r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D162972
2022-11-30 14:41:42 +00:00
Gian-Carlo Pascutto fb196dedcd Bug 1546442 - Add test for leading guard pages for normal allocations. r=glandium,pbone
Differential Revision: https://phabricator.services.mozilla.com/D132006
2021-11-26 11:46:25 +00:00
Paul Bone b41531f714 Bug 1669392 - Add more jemalloc size classes r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D92729
2021-10-13 06:53:20 +00:00
Marian-Vasile Laza 4107d26ed0 Backed out changeset 9de9bd47c061 (bug 1669392) for causing build bustages. 2021-10-12 04:18:26 +03:00
Paul Bone 70a8b02f11 Bug 1669392 - Add more jemalloc size classes r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D92729
2021-10-12 00:34:38 +00:00
Sylvestre Ledru 50c4de1fef Bug 1519636 - Reformat recent changes to the Google coding style r=necko-reviewers,valentin
Updated with clang-format version 11.0.1 (taskcluster-B6bdwSKDRF-luRQWXBuzpA)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D106920
2021-03-02 16:14:46 +00:00
Marco Castelluccio f5d0d4796a Bug 1693793 - Enable some jemalloc tests that were erroneusly disabled on ccov builds. r=glandium DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D105749
2021-02-26 08:17:39 +00:00
Mike Hommey ff88309abb Bug 1610720 - Change moz_dispose_arena to allow to free empty arenas. r=erahm
Currently, it's expected to "lazily" dispose of the arena. That is, if
the arena still has allocations, the arena is kept around. Using it for
new allocations is an error, but otherwise, it's possible to free
allocations from there. Once it's empty, the arena is freed too. Well,
that's the idea, but that last part is not actually implemented, cf.
bug 1364359.

While that is still an (optionally) desirable disposal mode, other modes
would be useful as well. So this bug is here to switch the current mode
to something that can more easily be used for e.g. bug 1377999.

The idea is to make moz_dispose_arena() free the arena immediately, and
MOZ_CRASH if it's not already empty (on a besst effort basis).

Differential Revision: https://phabricator.services.mozilla.com/D60635
2020-01-24 02:06:32 +00:00