Stream: git-wasmtime

Topic: wasmtime / PR #13374 Fix pooling allocator instance count...


view this post on Zulip Wasmtime GitHub notifications bot (May 14 2026 at 20:26):

fitzgen opened PR #13374 from fitzgen:instance-leak-on-oom to bytecodealliance:main:

Two things:

  1. Reserve capacity in the instances map before allocating the instance to prevent OOM during push from leaking the instance.

  2. Move guard.run_deallocate = false after Instance::new succeeds so that a failure in Instance::new properly decrements the live instance count.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (May 14 2026 at 20:26):

fitzgen requested pchickey for a review on PR #13374.

view this post on Zulip Wasmtime GitHub notifications bot (May 14 2026 at 20:26):

fitzgen requested wasmtime-core-reviewers for a review on PR #13374.

view this post on Zulip Wasmtime GitHub notifications bot (May 14 2026 at 22:04):

github-actions[bot] added the label wasmtime:api on PR #13374.

view this post on Zulip Wasmtime GitHub notifications bot (May 15 2026 at 02:00):

:thumbs_up: alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (May 15 2026 at 02:00):

alexcrichton added PR #13374 Fix pooling allocator instance count leak on OOM during instantiation to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (May 15 2026 at 02:24):

:check: alexcrichton merged PR #13374.

view this post on Zulip Wasmtime GitHub notifications bot (May 15 2026 at 02:24):

alexcrichton removed PR #13374 Fix pooling allocator instance count leak on OOM during instantiation from the merge queue.


Last updated: Jun 01 2026 at 09:49 UTC