@@ -346,7 +346,6 @@ void gc_sweep_sysimg(void);
346
346
347
347
348
348
// pools are 65528 bytes large (GC_POOL_SZ - GC_PAGE_OFFSET)
349
- // TODO update table for 64k size
350
349
static const int jl_gc_sizeclasses [] = {
351
350
#ifdef _P64
352
351
8 ,
@@ -368,20 +367,19 @@ static const int jl_gc_sizeclasses[] = {
368
367
// pg = 2^14
369
368
// sz = (div.(pg-8, rng).÷16)*16; hcat(sz, (pg-8).÷sz, pg .- (pg-8).÷sz.*sz)'
370
369
371
- // rng = 60:-4:32 (8 pools)
370
+ // rng = 240:-16:128 (8 pools)
372
371
272 , 288 , 304 , 336 , 368 , 400 , 448 , 496 ,
373
- // 60, 56, 53, 48, 44, 40, 36, 33, /pool
374
- // 64, 256, 272, 256, 192, 384, 256, 16, bytes lost
375
-
376
- // rng = 30:-2:16 (8 pools)
372
+ // 240, 227, 215, 195, 178, 163, 146, 132, /pool
373
+ // 248, 152, 168, 8, 24, 328, 120, 56, bytes lost
374
+ // rng = 120:-8:64 (8 pools)
377
375
544 , 576 , 624 , 672 , 736 , 816 , 896 , 1008 ,
378
- // 30 , 28 , 26 , 24 , 22 , 20 , 18 , 16 , /pool
379
- // 64, 256, 160, 256, 192 , 64, 256, 256 , bytes lost
376
+ // 120 , 113 , 105 , 97 , 89 , 80 , 73 , 65 , /pool
377
+ // 248, 440, 8, 344, 24 , 248, 120, 8 , bytes lost
380
378
381
- // rng = 15:-1:8 (8 pools)
379
+ // rng = 60:-4:32 (8 pools)
382
380
1088 , 1168 , 1248 , 1360 , 1488 , 1632 , 1808 , 2032
383
- // 15 , 14 , 13 , 12 , 11 , 10 , 9 , 8 , /pool
384
- // 64 , 32 , 160 , 64 , 16 , 64 , 112 , 128 , bytes lost
381
+ // 60 , 56 , 52 , 48 , 44 , 40 , 36 , 32 , /pool
382
+ // 248 , 120 , 632 , 248 , 56 , 248 , 440 , 504 , bytes lost
385
383
};
386
384
static_assert (sizeof (jl_gc_sizeclasses ) / sizeof (jl_gc_sizeclasses [0 ]) == JL_GC_N_POOLS , "" );
387
385
0 commit comments