Commit e80a30c
authored
Don't create a pool of GC heaps if it's disabled (#13139)
A fuzz test case is failing right now on `main` where the validation in
`Config` only checks tunables if a collector is enabled, but the GC pool
creation unconditionally check the tunables. This also felt a bit odd
creating a GC heap pool when the GC itself is disabled, so the code is
refactored to avoid creating a GC heap pool at all when a collector is
disabled.1 parent 495df13 commit e80a30c
File tree
1 file changed
+16
-8
lines changed- crates/wasmtime/src/runtime/vm/instance/allocator
1 file changed
+16
-8
lines changedLines changed: 16 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
360 | | - | |
| 359 | + | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
387 | 391 | | |
388 | 392 | | |
389 | 393 | | |
| |||
882 | 886 | | |
883 | 887 | | |
884 | 888 | | |
885 | | - | |
886 | | - | |
887 | | - | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
888 | 895 | | |
889 | 896 | | |
890 | 897 | | |
| |||
895 | 902 | | |
896 | 903 | | |
897 | 904 | | |
| 905 | + | |
898 | 906 | | |
899 | | - | |
| 907 | + | |
900 | 908 | | |
901 | 909 | | |
902 | 910 | | |
| |||
0 commit comments