Skip to content

Commit 1ae8574

Browse files
committed
[libpas] Retune designated intrinsic size-class table
https://bugs.webkit.org/show_bug.cgi?id=328282 rdar://problem/190571393 Reviewed by Yusuke Suzuki. This was hand-tuned when libpas was first implemented; now it is hand-tuned again, in expectation of some slight performance win. Several indices which previously mapped to a single size-class now map to distinct classes. This is generally good for performance due to better locality. It does bear a risk of decreasing page utilization, as these size-classes will no longer be able to share one another's pages, but in practice these classes have been observed to have sufficient traffic to avoid that issue. Changes: - Indices 7-8 split from s.c. 128 to s.c. 112, 128 - Indices 9-10 split from s.c. 160 to s.c. 144, 160 - Indices 17-19 split from s.c. 304 to s.c. 272, 304 - Indices 23-26 split from s.c. 416 to s.c. 384, 416 * Source/bmalloc/libpas/src/libpas/pas_designated_intrinsic_heap.c: (pas_designated_intrinsic_heap_initialize): Canonical link: https://commits.webkit.org/324729@main
1 parent ad3ad2c commit 1ae8574

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎Source/bmalloc/libpas/src/libpas/pas_designated_intrinsic_heap.c‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,18 @@ void pas_designated_intrinsic_heap_initialize(pas_segregated_heap* heap,
192192
set_up_range(&data, 4, 4, 64);
193193
set_up_range(&data, 5, 5, 80);
194194
set_up_range(&data, 6, 6, 96);
195-
set_up_range(&data, 7, 8, 128);
196-
set_up_range(&data, 9, 10, 160);
195+
set_up_range(&data, 7, 7, 112);
196+
set_up_range(&data, 8, 8, 128);
197+
set_up_range(&data, 9, 9, 144);
198+
set_up_range(&data, 10, 10, 160);
197199
set_up_range(&data, 11, 12, 192);
198200
set_up_range(&data, 13, 14, 224);
199201
set_up_range(&data, 15, 16, 256);
200-
set_up_range(&data, 17, 19, 304);
202+
set_up_range(&data, 17, 17, 272);
203+
set_up_range(&data, 18, 19, 304);
201204
set_up_range(&data, 20, 22, 352);
202-
set_up_range(&data, 23, 26, 416);
205+
set_up_range(&data, 23, 24, 384);
206+
set_up_range(&data, 25, 26, 416);
203207
break;
204208

205209
case 32:

0 commit comments

Comments
 (0)