Repository navigation
Expand file tree
/
Copy pathallocator-features.json
More file actions
1128 lines (1128 loc) · 38.2 KB
/
Copy pathallocator-features.json
File metadata and controls
1128 lines (1128 loc) · 38.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"caption": "Sourced cell by cell in docs/allocator-features.json. Upstream and Bun are the exact commits this fork pins to and ports from; jemalloc is the build in the benchmark lockfile. The measured row is the committed churn benchmark, whose upstream arm is v3.4.3 (bcee5a88).",
"legend": "✅ has it · ⚠️ partly — see the note · ❌ does not. `mimalloc-pprof` is [this fork](https://github.com/zackees/mimalloc-pprof); *upstream* is [microsoft/mimalloc](https://github.com/microsoft/mimalloc) at the pinned `dev3` commit `6def7be9`; *Bun* is [oven-sh/mimalloc](https://github.com/oven-sh/mimalloc) at `b20b60d9`; *jemalloc* is 5.3.1 (`81034ce1`), the build in [`allocator-lock.json`](rust/benchmark-suite/allocators/allocator-lock.json). Every ❌ and ⚠️ in the `mimalloc-pprof` column links the issue tracking it. The per-cell sources — a `path:line` in this tree, a path in the pinned upstream or Bun commit, or a jemalloc doc anchor — are in [`docs/allocator-features.json`](docs/allocator-features.json), which this table and the image above are both rendered from by [`ci/render_feature_table.py`](ci/render_feature_table.py).",
"allocators": [
{
"key": "mimalloc-pprof",
"label": "mimalloc-pprof",
"version": "this fork, 1.0.x"
},
{
"key": "upstream",
"label": "Microsoft MiMalloc-V3",
"version": "v3 dev3 @ 6def7be9"
},
{
"key": "bun",
"label": "Bun mimalloc",
"version": "oven-sh @ b20b60d9"
},
{
"key": "jemalloc",
"label": "jemalloc",
"version": "5.3.1 @ 81034ce1"
}
],
"groups": [
{
"name": "Memory return",
"rows": [
{
"feature": "Process-wide eager purge, from any thread",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "gated 72 %, default parked",
"source": "src/purge-all.c, include/mimalloc/owner-gate.h; https://github.com/zackees/mimalloc-pprof/issues/366 (measured: 4 busy threads, purge from another thread, 72 % gated / 12 % default)"
},
"upstream": {
"status": "no",
"note": "mi_collect is caller-only",
"source": "microsoft/mimalloc@6def7be9 src/theap.c:157"
},
"bun": {
"status": "no",
"note": "mi_collect is caller-only",
"source": "oven-sh/mimalloc@b20b60d9 include/mimalloc.h:193"
},
"jemalloc": {
"status": "yes",
"note": "MALLCTL_ARENAS_ALL, 74 %",
"source": "https://jemalloc.net/jemalloc.3.html#arena.i.purge (measured: 4 busy threads, purge from another thread, 74 %)"
}
}
},
{
"feature": "Purge the calling thread's own memory",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "mi_collect, idle hook",
"source": "include/mimalloc.h:193, :199"
},
"upstream": {
"status": "yes",
"note": "mi_collect",
"source": "microsoft/mimalloc@6def7be9 include/mimalloc.h:193"
},
"bun": {
"status": "yes",
"note": "mi_collect, idle hook",
"source": "oven-sh/mimalloc@b20b60d9 include/mimalloc.h:203"
},
"jemalloc": {
"status": "yes",
"note": "tcache.flush + arena.i.purge",
"source": "https://jemalloc.net/jemalloc.3.html#thread.tcache.flush"
}
}
},
{
"feature": "Sweep another thread's heap for it",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "all gated; parked default",
"source": "src/purge-all.c; https://github.com/zackees/mimalloc-pprof/issues/366"
},
"upstream": {
"status": "no",
"note": "no scavenger at all",
"source": "microsoft/mimalloc@6def7be9 src/ (no scavenger.c)"
},
"bun": {
"status": "partial",
"note": "parked threads only",
"source": "oven-sh/mimalloc@b20b60d9 src/scavenger.c:207"
},
"jemalloc": {
"status": "partial",
"note": "arena purge, not their tcache",
"source": "https://jemalloc.net/jemalloc.3.html#thread.tcache.flush"
}
}
},
{
"feature": "Sub-page return inside a still-used page",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "hole purging, on by default",
"source": "include/mimalloc.h:616, src/page-holes.c"
},
"upstream": {
"status": "no",
"note": "whole pages only",
"source": "microsoft/mimalloc@6def7be9 src/ (no purge_holes)"
},
"bun": {
"status": "yes",
"note": "hole purging, on by default",
"source": "oven-sh/mimalloc@b20b60d9 src/options.c:181"
},
"jemalloc": {
"status": "no",
"note": "extent-granular purge",
"source": "https://jemalloc.net/jemalloc.3.html#arena.i.purge"
}
}
},
{
"feature": "Background purge thread",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "on by default",
"source": "src/scavenger.c, src/options.c:190"
},
"upstream": {
"status": "no",
"note": "purge waits for a malloc",
"source": "microsoft/mimalloc@6def7be9 src/ (no background thread)"
},
"bun": {
"status": "yes",
"note": "on by default",
"source": "oven-sh/mimalloc@b20b60d9 src/options.c:180"
},
"jemalloc": {
"status": "partial",
"note": "off by default",
"source": "https://jemalloc.net/jemalloc.3.html#background_thread"
}
}
},
{
"feature": "Time-delayed / decaying purge",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "purge_delay 100 ms",
"source": "src/options.c:143"
},
"upstream": {
"status": "yes",
"note": "purge_delay 1000 ms",
"source": "microsoft/mimalloc@6def7be9 src/options.c:140"
},
"bun": {
"status": "yes",
"note": "purge_delay 100 ms",
"source": "oven-sh/mimalloc@b20b60d9 src/options.c:140"
},
"jemalloc": {
"status": "yes",
"note": "dirty_decay_ms 10 s",
"source": "https://jemalloc.net/jemalloc.3.html#opt.dirty_decay_ms"
}
}
},
{
"feature": "RSS returned after 10 s idle (churn)",
"cells": {
"mimalloc-pprof": {
"status": "value",
"note": "74 %",
"source": ".github/assets/allocator-idle-report.json"
},
"upstream": {
"status": "value",
"note": "0 % (18 % w/ mi_collect)",
"source": ".github/assets/allocator-idle-report.json"
},
"bun": {
"status": "value",
"note": "74 %",
"source": ".github/assets/allocator-idle-report.json"
},
"jemalloc": {
"status": "value",
"note": "0 % (74 % if asked)",
"source": ".github/assets/allocator-idle-report.json"
}
}
},
{
"feature": "Explicit empty-arena reclaim (opt-in)",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "MI_PURGE_RECLAIM",
"source": "src/purge-all.c:340"
},
"upstream": {
"status": "no",
"note": "no runtime reclaim API",
"source": "microsoft/mimalloc@6def7be9 src/arena.c:1427"
},
"bun": {
"status": "no",
"note": "no runtime reclaim API",
"source": "oven-sh/mimalloc@b20b60d9 src/arena.c:1593"
},
"jemalloc": {
"status": "partial",
"note": "manual per-arena destroy",
"source": "jemalloc 5.3.1@81034ce1 doc/jemalloc.xml.in:2058"
}
}
}
]
},
{
"name": "Profiling and observability",
"rows": [
{
"feature": "pprof-compatible sampled heap profiler",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "compile + runtime opt-in",
"source": "include/mimalloc/types.h:27-31; src/profile.c:273-306"
},
"upstream": {
"status": "no",
"note": "none at all",
"source": "microsoft/mimalloc@6def7be9 src/ (no prof.c)"
},
"bun": {
"status": "yes",
"note": "runtime opt-in",
"source": "oven-sh/mimalloc@b20b60d9 src/prof.c, include/mimalloc.h:398"
},
"jemalloc": {
"status": "yes",
"note": "build-time --enable-prof",
"source": "https://jemalloc.net/jemalloc.3.html#opt.prof"
}
}
},
{
"feature": "Heap profiler on Windows",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "MSVC and MinGW",
"source": "src/profile-maps.c:29"
},
"upstream": {
"status": "no",
"note": "no profiler",
"source": "microsoft/mimalloc@6def7be9 src/ (no prof.c)"
},
"bun": {
"status": "partial",
"note": "frames, no module map",
"source": "oven-sh/mimalloc@b20b60d9 src/prof.c:165, :563"
},
"jemalloc": {
"status": "partial",
"note": "not MSVC; MinGW untested",
"source": "https://github.com/jemalloc/jemalloc/blob/81034ce1f1373e37dc865038e1bc8eeecf559ce8/INSTALL.md#L134"
}
}
},
{
"feature": "profile.proto (protobuf) output",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "and gperftools text",
"source": "include/mimalloc/profile.h:95"
},
"upstream": {
"status": "no",
"note": "no profiler",
"source": "microsoft/mimalloc@6def7be9 src/ (no prof.c)"
},
"bun": {
"status": "yes",
"note": "",
"source": "oven-sh/mimalloc@b20b60d9 src/prof.c"
},
"jemalloc": {
"status": "no",
"note": "text format; jeprof reads",
"source": "https://jemalloc.net/jemalloc.3.html#heap_profile_format"
}
}
},
{
"feature": "Exact allocator statistics",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "mi_stats_get",
"source": "include/mimalloc-stats.h:151"
},
"upstream": {
"status": "yes",
"note": "mi_stats_get",
"source": "microsoft/mimalloc@6def7be9 include/mimalloc-stats.h:151"
},
"bun": {
"status": "yes",
"note": "mi_stats_get",
"source": "oven-sh/mimalloc@b20b60d9 include/mimalloc-stats.h:153"
},
"jemalloc": {
"status": "yes",
"note": "mallctl / malloc_stats_print",
"source": "https://jemalloc.net/jemalloc.3.html#malloc_stats_print_opts"
}
}
},
{
"feature": "Statistics as JSON",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "mi_stats_get_json",
"source": "include/mimalloc-stats.h:152"
},
"upstream": {
"status": "yes",
"note": "mi_stats_get_json",
"source": "microsoft/mimalloc@6def7be9 include/mimalloc-stats.h:152"
},
"bun": {
"status": "yes",
"note": "mi_stats_get_json",
"source": "oven-sh/mimalloc@b20b60d9 src/stats.c:850"
},
"jemalloc": {
"status": "yes",
"note": "the \"J\" opts flag",
"source": "https://jemalloc.net/jemalloc.3.html#malloc_stats_print_opts"
}
}
},
{
"feature": "Per-heap JSON dump",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "mi_heap_dump_json",
"source": "include/mimalloc-stats.h:168"
},
"upstream": {
"status": "no",
"note": "process-wide stats only",
"source": "microsoft/mimalloc@6def7be9 include/ (no mi_heap_dump_json)"
},
"bun": {
"status": "yes",
"note": "mi_heap_dump_json",
"source": "oven-sh/mimalloc@b20b60d9 include/mimalloc-stats.h:167"
},
"jemalloc": {
"status": "no",
"note": "per-arena, not per-heap",
"source": "https://jemalloc.net/jemalloc.3.html#malloc_stats_print_opts"
}
}
},
{
"feature": "DHAT exact profiling (Valgrind format)",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "mi_dhat_start",
"source": "include/mimalloc/dhat.h:43"
},
"upstream": {
"status": "no",
"note": "",
"source": "microsoft/mimalloc@6def7be9 src/ (no dhat)"
},
"bun": {
"status": "no",
"note": "",
"source": "oven-sh/mimalloc@b20b60d9 src/ (no dhat)"
},
"jemalloc": {
"status": "no",
"note": "",
"source": "https://jemalloc.net/jemalloc.3.html"
}
}
},
{
"feature": "Allocation-event callbacks",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "mi_memory_set_callbacks",
"source": "include/mimalloc/memory-events.h:91"
},
"upstream": {
"status": "no",
"note": "",
"source": "microsoft/mimalloc@6def7be9 src/ (no memory-events)"
},
"bun": {
"status": "no",
"note": "",
"source": "oven-sh/mimalloc@b20b60d9 src/ (no memory-events)"
},
"jemalloc": {
"status": "partial",
"note": "experimental.hooks.install",
"source": "jemalloc 5.3.1@81034ce1 src/ctl.c:882"
}
}
},
{
"feature": "Walk every live block in a heap",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "mi_heap_visit_blocks",
"source": "include/mimalloc.h:405"
},
"upstream": {
"status": "yes",
"note": "mi_heap_visit_blocks",
"source": "microsoft/mimalloc@6def7be9 include/mimalloc.h:315"
},
"bun": {
"status": "yes",
"note": "mi_heap_visit_blocks",
"source": "oven-sh/mimalloc@b20b60d9 include/mimalloc.h:369"
},
"jemalloc": {
"status": "no",
"note": "no iteration mallctl",
"source": "https://jemalloc.net/jemalloc.3.html"
}
}
},
{
"feature": "Live heap snapshot with a viewer",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "mi_heap_snapshot — #338",
"source": "https://github.com/zackees/mimalloc-pprof/issues/338"
},
"upstream": {
"status": "no",
"note": "",
"source": "microsoft/mimalloc@6def7be9 src/ (no heap-snapshot.c)"
},
"bun": {
"status": "yes",
"note": "+ tools/mi-heapview",
"source": "oven-sh/mimalloc@b20b60d9 src/heap-snapshot.c"
},
"jemalloc": {
"status": "no",
"note": "",
"source": "https://jemalloc.net/jemalloc.3.html"
}
}
},
{
"feature": "No fast-path cost while profiling is off",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "malloc path byte-identical",
"source": "src/alloc.c:122, include/mimalloc/types.h:616, docs/profiler.md:10"
},
"upstream": {
"status": "yes",
"note": "nothing to cost",
"source": "microsoft/mimalloc@6def7be9 src/ (no prof.c)"
},
"bun": {
"status": "yes",
"note": "sample rate 0 by default",
"source": "oven-sh/mimalloc@b20b60d9 src/options.c:179"
},
"jemalloc": {
"status": "partial",
"note": "build-time opt-in",
"source": "https://jemalloc.net/jemalloc.3.html#opt.prof"
}
}
}
]
},
{
"name": "Robustness",
"rows": [
{
"feature": "fork() handlers (pthread_atfork)",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "documented lock order",
"source": "src/init.c:680, src/fork.c"
},
"upstream": {
"status": "no",
"note": "none registered",
"source": "microsoft/mimalloc@6def7be9 src/ (no pthread_atfork)"
},
"bun": {
"status": "yes",
"note": "",
"source": "oven-sh/mimalloc@b20b60d9 src/init.c:618"
},
"jemalloc": {
"status": "yes",
"note": "jemalloc_prefork",
"source": "jemalloc 5.3.1@81034ce1 src/jemalloc.c:1029"
}
}
},
{
"feature": "Runtime lock-order checker",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "MI_DEBUG>2",
"source": "src/fork.c:495"
},
"upstream": {
"status": "no",
"note": "no fork handlers either",
"source": "microsoft/mimalloc@6def7be9 src/ (no lock-order check)"
},
"bun": {
"status": "no",
"note": "order kept by hand",
"source": "oven-sh/mimalloc@b20b60d9 src/ (no lock-order check)"
},
"jemalloc": {
"status": "yes",
"note": "witness ranks, --enable-debug",
"source": "jemalloc 5.3.1@81034ce1 src/witness.c:96"
}
}
},
{
"feature": "Heap-teardown ABA claim protocol",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "+ fault-injection tests",
"source": "src/heap.c:190, src/theap.c:469"
},
"upstream": {
"status": "no",
"note": "",
"source": "microsoft/mimalloc@6def7be9 src/heap.c (no claim protocol)"
},
"bun": {
"status": "yes",
"note": "",
"source": "oven-sh/mimalloc@b20b60d9 src/heap.c:169, src/theap.c:686"
},
"jemalloc": {
"status": "no",
"note": "caller must flush first",
"source": "https://jemalloc.net/jemalloc.3.html#arena.i.destroy"
}
}
},
{
"feature": "Guard-page (guarded) allocations",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "MI_GUARDED",
"source": "include/mimalloc/types.h:100"
},
"upstream": {
"status": "yes",
"note": "MI_GUARDED",
"source": "microsoft/mimalloc@6def7be9 CMakeLists.txt:12"
},
"bun": {
"status": "yes",
"note": "MI_GUARDED",
"source": "oven-sh/mimalloc@b20b60d9 CMakeLists.txt:12"
},
"jemalloc": {
"status": "partial",
"note": "opt.san_guard_small/large",
"source": "jemalloc 5.3.1@81034ce1 src/conf.c:1125, src/san.c"
}
}
},
{
"feature": "Hardened / secure build mode",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "MI_SECURE 1-4",
"source": "include/mimalloc/types.h:74"
},
"upstream": {
"status": "yes",
"note": "MI_SECURE 1-4",
"source": "microsoft/mimalloc@6def7be9 CMakeLists.txt:7"
},
"bun": {
"status": "yes",
"note": "MI_SECURE 1-4",
"source": "oven-sh/mimalloc@b20b60d9 CMakeLists.txt:7"
},
"jemalloc": {
"status": "no",
"note": "no equivalent mode",
"source": "https://jemalloc.net/jemalloc.3.html"
}
}
},
{
"feature": "ASan / Valgrind / ETW tracking",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "all three",
"source": "include/mimalloc/track.h:46"
},
"upstream": {
"status": "yes",
"note": "all three",
"source": "microsoft/mimalloc@6def7be9 CMakeLists.txt:24-26"
},
"bun": {
"status": "yes",
"note": "all three",
"source": "oven-sh/mimalloc@b20b60d9 CMakeLists.txt:24-26"
},
"jemalloc": {
"status": "no",
"note": "no ASan, no ETW; Valgrind gone",
"source": "jemalloc 5.3.1@81034ce1 ChangeLog:687"
}
}
}
]
},
{
"name": "Platform and integration",
"rows": [
{
"feature": "Windows MSVC as a first-class target",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "native cl gate per PR",
"source": ".github/workflows/c-unit.yml"
},
"upstream": {
"status": "yes",
"note": "in the test matrix",
"source": "microsoft/mimalloc@6def7be9 .github/workflows/test.yaml:21"
},
"bun": {
"status": "yes",
"note": "in the test matrix",
"source": "oven-sh/mimalloc@b20b60d9 .github/workflows/test.yaml:26"
},
"jemalloc": {
"status": "partial",
"note": "no prof, no bg thread",
"source": "https://github.com/jemalloc/jemalloc/blob/81034ce1f1373e37dc865038e1bc8eeecf559ce8/INSTALL.md#L406"
}
}
},
{
"feature": "Windows malloc override via a redirect DLL",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "mimalloc-redirect.dll",
"source": "CMakeLists.txt:36, src/prim/windows/prim.c:1285"
},
"upstream": {
"status": "yes",
"note": "mimalloc-redirect.dll",
"source": "microsoft/mimalloc@6def7be9 CMakeLists.txt:36"
},
"bun": {
"status": "yes",
"note": "mimalloc-redirect.dll",
"source": "oven-sh/mimalloc@b20b60d9 CMakeLists.txt:36"
},
"jemalloc": {
"status": "no",
"note": "link-time replacement only",
"source": "https://github.com/jemalloc/jemalloc/blob/81034ce1f1373e37dc865038e1bc8eeecf559ce8/INSTALL.md#L406"
}
}
},
{
"feature": "MinGW / win-gnu covered in CI",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "cross-built, then run",
"source": ".github/workflows/windows-bundles.yml"
},
"upstream": {
"status": "yes",
"note": "mingw-ucrt64",
"source": "microsoft/mimalloc@6def7be9 .github/workflows/test.yaml:35"
},
"bun": {
"status": "yes",
"note": "mingw-ucrt64",
"source": "oven-sh/mimalloc@b20b60d9 .github/workflows/test.yaml:36"
},
"jemalloc": {
"status": "yes",
"note": "MSYS2 mingw32-make",
"source": "jemalloc 5.3.1@81034ce1 .github/workflows/windows-ci.yml:104"
}
}
},
{
"feature": "macOS malloc-zone interpose",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "",
"source": "src/prim/osx/alloc-override-zone.c:421"
},
"upstream": {
"status": "yes",
"note": "",
"source": "microsoft/mimalloc@6def7be9 src/prim/osx/alloc-override-zone.c"
},
"bun": {
"status": "yes",
"note": "",
"source": "oven-sh/mimalloc@b20b60d9 src/prim/osx/alloc-override-zone.c"
},
"jemalloc": {
"status": "yes",
"note": "",
"source": "jemalloc 5.3.1@81034ce1 src/zone.c"
}
}
},
{
"feature": "macOS zone introspection (leaks, vmmap)",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "in- and out-of-process — #349",
"source": "https://github.com/zackees/mimalloc-pprof/pull/349"
},
"upstream": {
"status": "no",
"note": "stub enumerator",
"source": "microsoft/mimalloc@6def7be9 src/prim/osx/alloc-override-zone.c"
},
"bun": {
"status": "yes",
"note": "in- and out-of-process",
"source": "oven-sh/mimalloc@b20b60d9 src/prim/osx/alloc-override-zone.c:304"
},
"jemalloc": {
"status": "no",
"note": "stub enumerator",
"source": "jemalloc 5.3.1@81034ce1 src/zone.c:255"
}
}
},
{
"feature": "First-party Rust crate, full C API",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "mimalloc-pprof on crates.io",
"source": "rust/mimalloc-pprof/src/sys.rs, ci/check_rust_surface.py"
},
"upstream": {
"status": "no",
"note": "third-party crates only",
"source": "https://crates.io/crates/libmimalloc-sys"
},
"bun": {
"status": "no",
"note": "no crate",
"source": "oven-sh/mimalloc@b20b60d9 (no rust/)"
},
"jemalloc": {
"status": "no",
"note": "third-party crates only",
"source": "https://crates.io/crates/tikv-jemallocator"
}
}
},
{
"feature": "Release targets cross-built on Linux",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "5 targets through soldr",
"source": ".github/workflows/cross.yml:115"
},
"upstream": {
"status": "no",
"note": "native runner per OS",
"source": "microsoft/mimalloc@6def7be9 .github/workflows/test.yaml:21"
},
"bun": {
"status": "no",
"note": "native runner per OS",
"source": "oven-sh/mimalloc@b20b60d9 .github/workflows/test.yaml:26"
},
"jemalloc": {
"status": "no",
"note": "native runner per OS",
"source": "jemalloc 5.3.1@81034ce1 .github/workflows/macos-ci.yml"
}
}
},
{
"feature": "macOS covered with no Apple hardware",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "cross-built; guest run manual",
"source": ".github/workflows/macos-bundles.yml"
},
"upstream": {
"status": "no",
"note": "hosted macOS runners",
"source": "microsoft/mimalloc@6def7be9 .github/workflows/test.yaml:21"
},
"bun": {
"status": "no",
"note": "hosted macOS runners",
"source": "oven-sh/mimalloc@b20b60d9 .github/workflows/test.yaml:26"
},
"jemalloc": {
"status": "no",
"note": "hosted macOS runners",
"source": "jemalloc 5.3.1@81034ce1 .github/workflows/macos-ci.yml"
}
}
}
]
},
{
"name": "Allocator design",
"rows": [
{
"feature": "Per-thread heaps and caches",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "mi_theap_t per thread",
"source": "include/mimalloc/types.h"
},
"upstream": {
"status": "yes",
"note": "mi_theap_t per thread",
"source": "microsoft/mimalloc@6def7be9 include/mimalloc/types.h"
},
"bun": {
"status": "yes",
"note": "mi_theap_t per thread",
"source": "oven-sh/mimalloc@b20b60d9 include/mimalloc/types.h"
},
"jemalloc": {
"status": "yes",
"note": "tcache + per-thread arena",
"source": "https://jemalloc.net/jemalloc.3.html#thread.tcache.enabled"
}
}
},
{
"feature": "Create and destroy your own heaps",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "mi_heap_new",
"source": "include/mimalloc.h:293"
},
"upstream": {
"status": "yes",
"note": "mi_heap_new",
"source": "microsoft/mimalloc@6def7be9 include/mimalloc.h:237"
},
"bun": {
"status": "yes",
"note": "mi_heap_new",
"source": "oven-sh/mimalloc@b20b60d9 include/mimalloc.h:291"
},
"jemalloc": {
"status": "yes",
"note": "arenas.create",
"source": "https://jemalloc.net/jemalloc.3.html#arenas.create"
}
}
},
{
"feature": "Shared arenas under the per-thread layer",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "arena-of-slices (v3)",
"source": "src/arena.c"
},
"upstream": {
"status": "yes",
"note": "arena-of-slices (v3)",
"source": "microsoft/mimalloc@6def7be9 src/arena.c"
},
"bun": {
"status": "yes",
"note": "arena-of-slices (v3)",
"source": "oven-sh/mimalloc@b20b60d9 src/arena.c"
},
"jemalloc": {
"status": "yes",
"note": "per-CPU mode available",
"source": "https://jemalloc.net/jemalloc.3.html#opt.percpu_arena"
}
}
},
{
"feature": "Large / huge OS pages",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "allow_large_os_pages",
"source": "include/mimalloc.h:561"
},
"upstream": {
"status": "yes",
"note": "allow_large_os_pages",
"source": "microsoft/mimalloc@6def7be9 include/mimalloc.h:471"
},
"bun": {
"status": "yes",
"note": "allow_large_os_pages",
"source": "oven-sh/mimalloc@b20b60d9 include/mimalloc.h:540"
},
"jemalloc": {
"status": "yes",
"note": "opt.thp, opt.metadata_thp",
"source": "https://jemalloc.net/jemalloc.3.html#opt.thp"
}
}
},
{
"feature": "NUMA-aware reservation",
"cells": {
"mimalloc-pprof": {
"status": "yes",
"note": "use_numa_nodes",
"source": "include/mimalloc.h:571"
},
"upstream": {
"status": "yes",
"note": "use_numa_nodes",
"source": "microsoft/mimalloc@6def7be9 include/mimalloc.h:481"
},
"bun": {
"status": "yes",
"note": "use_numa_nodes",
"source": "oven-sh/mimalloc@b20b60d9 include/mimalloc.h:550"
},
"jemalloc": {
"status": "no",
"note": "no NUMA option",
"source": "https://jemalloc.net/jemalloc.3.html"
}
}
},
{