Commit 82cc186
committed
Derive PAS_MAX_OBJECTS_PER_PAGE from small page size
The previous hardcoded 2048 assumed PAS_SMALL_PAGE_DEFAULT_SIZE=16KB.
With 64KB pages, num_alloc_bits = page_size >> min_align_shift can reach
8192 (utility heap, PAS_INTERNAL_MIN_ALIGN_SHIFT=3), causing
pas_baseline_allocator_attach_directory to PAS_ASSERT when a thread hits
the baseline allocator slow path.1 parent 0e6a066 commit 82cc186
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| |||
0 commit comments