Skip to content

Don't create a pool of GC heaps if it's disabled#13139

Merged
fitzgen merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-tunables-check
Apr 20, 2026
Merged

Don't create a pool of GC heaps if it's disabled#13139
fitzgen merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-tunables-check

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

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.

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.
@alexcrichton alexcrichton requested a review from a team as a code owner April 19, 2026 15:35
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team April 19, 2026 15:35
@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Apr 19, 2026
@fitzgen fitzgen added this pull request to the merge queue Apr 20, 2026
Merged via the queue into bytecodealliance:main with commit e80a30c Apr 20, 2026
48 checks passed
@alexcrichton alexcrichton deleted the fix-tunables-check branch April 20, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasmtime:api Related to the API of the `wasmtime` crate itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants