You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c8ce68f
Browse filesBrowse the repository at this point in the historyBrowse files
https://bugs.webkit.org/show_bug.cgi?id=328247
rdar://190551080
Reviewed by Keith Miller.
Previously, each of libpas’ basic heaps used a single parameter (usually
PAS_MIN_OBJECTS_PER_PAGE, currently 11) to control the maximum object
size for every constituent heap, and thus the boundaries between all of
them. This meant that e.g. increasing the ceiling of the small-segregated heap
(by decreasing min-objects-per-page) required increasing the ceiling of the
medium-segregated heap. This is not intrinsically necessary and constrained
some finer-tuned optimizations we would like to make.
This patch breaks out those parameters so that it's easy to pipe through
non-default min-object parameters where desired. None of the parameters have
actually been changed; that will come in a followon patch.
In order to accomodate this in in the output of
LibpasMallocReportConfig, some changes were necessary, which I expanded
on to flesh out the per-page reporting; it now looks like
```
Heap-Config bmalloc:
Page Configs: page payload align min-objs max obj handicap granule view-cache +MTE
Small Segregated 16384B 16212B 16B 11 1472B 1.00 16384B cap 100 0
Medium Segregated 131072B 131072B 512B 11 11776B 1.05 16384B cap 12 0
Small Bitfit 16384B 16112B 16B 11 1456B n/a 16384B n/a 0
Medium Bitfit 524288B 524288B 512B 11 32768B n/a 16384B n/a 0
Marge Bitfit 4194304B 4194304B 4096B 11 380928B n/a 16384B n/a 0
Runtime Heap Config Size-Maximums (Segregated, Bitfit, Baseline Dir, No-View-Cache Dir):
Flex: 4294967295B, 0B, 0B, 4294967295B
Intrinsic: 4294967295B, 4294967295B, 0B, 0B
Typed: 4294967295B, 0B, 0B, 4294967295B
Primitive: 4294967295B, 4294967295B, 0B, 4294967295B
```
Tested in AllocationZeroingTests
* Source/bmalloc/libpas/src/libpas/bmalloc_heap_config.h:
* Source/bmalloc/libpas/src/libpas/hotbit_heap_config.h:
* Source/bmalloc/libpas/src/libpas/iso_heap_config.h:
* Source/bmalloc/libpas/src/libpas/iso_test_heap_config.h:
* Source/bmalloc/libpas/src/libpas/jit_heap_config.h:
* Source/bmalloc/libpas/src/libpas/minalign32_heap_config.h:
* Source/bmalloc/libpas/src/libpas/pagesize64k_heap_config.h:
* Source/bmalloc/libpas/src/libpas/pas_bitfit_page_config.h:
* Source/bmalloc/libpas/src/libpas/pas_heap_config_utils.h:
* Source/bmalloc/libpas/src/libpas/pas_internal_config.h:
* Source/bmalloc/libpas/src/libpas/pas_mte.h:
(pas_mte_compute_valid_tags_under_adjacent_tag_exclusion):
* Source/bmalloc/libpas/src/libpas/pas_mte_config.c:
(pas_report_page_config):
(pas_report_segregated_page_config):
(pas_report_bitfit_page_config):
(pas_report_heap_config):
(pas_report_runtime_config):
(pas_report_runtime_config_header):
(pas_report_config):
* Source/bmalloc/libpas/src/libpas/pas_segregated_page.h:
* Source/bmalloc/libpas/src/libpas/tagged_bmalloc_heap_config.c:
* Source/bmalloc/libpas/src/libpas/tagged_bmalloc_heap_config.h:
* Source/bmalloc/libpas/src/libpas/thingy_heap_config.h:
* Source/bmalloc/libpas/src/test/AllocationZeroingTests.cpp:
* Source/bmalloc/libpas/src/test/UtilsTests.cpp:
(std::testGranuleUseCountsForObjectSize):
(addUtilsTests):
Canonical link: https://commits.webkit.org/324560@main
0 commit comments