Stream: git-wasmtime

Topic: wasmtime / PR #10560 Automatically trigger GC in `{Array,...


view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2025 at 20:48):

fitzgen opened PR #10560 from fitzgen:auto-gc-in-ref-new to bytecodealliance:main:

Rather than forcing all callers to check for GcHeapOutOfMemory, trigger a GC, and then try again. This does force us to define *_async variations for when async is enabled, however; it's ultimately worth it.

<!--
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 (Apr 09 2025 at 20:48):

fitzgen requested pchickey for a review on PR #10560.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2025 at 20:48):

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

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2025 at 20:48):

fitzgen requested alexcrichton for a review on PR #10560.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2025 at 21:36):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2025 at 21:36):

alexcrichton created PR review comment:

Could this assertion get folded into new_unchecked?

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2025 at 22:45):

github-actions[bot] commented on PR #10560:

Subscribe to Label Action

cc @fitzgen

<details>
This issue or pull request has been labeled: "wasmtime:api", "wasmtime:ref-types"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2025 at 23:06):

fitzgen updated PR #10560.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2025 at 23:13):

fitzgen updated PR #10560.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2025 at 23:26):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2025 at 23:26):

alexcrichton created PR review comment:

Could this get sunk into retry_after_gc? (and the dual into retry_after_gc_async?)

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2025 at 23:26):

alexcrichton created PR review comment:

Could this get sunk into _new_unchecked? (making it a bit less unchecked)

Basically trying to get these multiple entrypoints as a one-liner-ish around the "guts" and the same "guts" are used everywhere

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2025 at 23:59):

fitzgen updated PR #10560.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2025 at 00:00):

fitzgen has enabled auto merge for PR #10560.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2025 at 00:01):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2025 at 00:01):

fitzgen created PR review comment:

Not without either making the panic message worse for users or plumbing through extra arguments to the retry functions that are just for the panic message. Neither seems worth the trade off.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2025 at 14:43):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2025 at 14:43):

alexcrichton created PR review comment:

Personally I think it's fine to make the panic messages worse given the predicted rarity they'll come up, but I'm ok either way.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2025 at 15:02):

fitzgen updated PR #10560.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2025 at 15:37):

fitzgen merged PR #10560.


Last updated: Dec 06 2025 at 06:05 UTC