History log of /wasmtime-44.0.1/crates/core/src/alloc/vec.rs (Results 1 – 25 of 25)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: dev, v36.0.9, v44.0.1, v43.0.2, v36.0.8, v24.0.8, v44.0.0, v43.0.1, v42.0.2, v36.0.7, v24.0.7
# 439de7fb 30-Mar-2026 Nick Fitzgerald <[email protected]>

Handle OOM in the rest of Wasmtime's non-component, -async, -compilation APIs (#12858)

* Handle OOM in more places in the public API

A bunch of random places:

* Add: `Trap::try_new` to handle OOM

Handle OOM in the rest of Wasmtime's non-component, -async, -compilation APIs (#12858)

* Handle OOM in more places in the public API

A bunch of random places:

* Add: `Trap::try_new` to handle OOM while creating traps
* Use: `TryVec` inside `Func::call_impl_do_call` and `wasm_val_raw_storage` to
hold the args and rets
* Add: `Instance::try_exports` for iterating over an instance's exports while
handling OOM
* `Linker:try_get`, like `Linker::get` but handling OOM
* `Linker:try_get_by_import`, like `Linker::get_by_import` but handling OOM
* Use `try_new` to box things in `SharedMemory::new`
* Use `TryVec` instead of `Vec` in our dynamic tables

* Add OOM tests for most of Wasmtime's public API

Excludes component-, async-, and compilation-related APIs.

* address review feedback

* fix test compilation

* fix c-api

show more ...


# 2283e84f 30-Mar-2026 Alex Crichton <[email protected]>

Fix a panic with a massive `max_wasm_stack` configured (#12869)

* Fix a panic with a massive `max_wasm_stack` configured

This commit fixes a panic through a `checked_add(...).unwrap()` which
can ha

Fix a panic with a massive `max_wasm_stack` configured (#12869)

* Fix a panic with a massive `max_wasm_stack` configured

This commit fixes a panic through a `checked_add(...).unwrap()` which
can happen when `Config::max_wasm_stack` is configured to be a very
large value. This is a mostly benign panic as it's unlikely this is
configured much in the wild, but nevertheless seems like a good issues
to fix regardless.

* Fix an overflow/OOM panic in pulley

prtest:full

* Fix CI

* Another CI fix

* Fix test on 32-bit

* Fix miri test

show more ...


# 837d02fa 25-Mar-2026 Nick Fitzgerald <[email protected]>

Add `TryVec::retain[_mut]` methods (#12838)

Same as `std::vec::Vec::retain[_mut]`


Revision tags: v43.0.0
# 72dccdfd 09-Mar-2026 bjorn3 <[email protected]>

Make serde an optional dependency in wasmtime-core (#12739)

cg_clif does not need serde, yet it was previously pulled in by
Cranelift through the dependency on wasmtime-core.


# 183891f0 05-Mar-2026 Nick Fitzgerald <[email protected]>

Rename our OOM-handling `Vec` to `TryVec` (#12721)

* Rename our OOM-handling `Vec` to `TryVec`

* fix tests that got mangled by the LSP server

* fix more tests mangled by LSP


Revision tags: v42.0.1
# 8a8a9237 25-Feb-2026 Nick Fitzgerald <[email protected]>

Remove `#[derive(Clone)]` from our OOM-handling `Vec<T>` (#12668)

If the `Vec<T>` is non-empty, then cloning will allocate, so we should only
implement `TryClone`, not `Clone`.


# cfd8a4d2 25-Feb-2026 Nick Fitzgerald <[email protected]>

Add an OOM-handling `TryCow` type and `TryToOwned` trait (#12669)

These are like `std::borrow::Cow` and `std::borrow::ToOwned` but return
`OutOfMemory` errors on allocation failure.


Revision tags: v41.0.4, v42.0.0, v40.0.4, v36.0.6, v24.0.6
# 763ace02 18-Feb-2026 Nick Fitzgerald <[email protected]>

Add a `clear` method to our OOM-handling `Vec` (#12620)


# 5c2795e4 13-Feb-2026 Nick Fitzgerald <[email protected]>

Allow slicing our OOM-handling `Vec` with ranges (#12582)

Not just `usize`s.


# 83cf59f2 12-Feb-2026 Nick Fitzgerald <[email protected]>

Add a `vec!` macro for our OOM-handling `Vec` (#12581)


# 9ead02e7 12-Feb-2026 Nick Fitzgerald <[email protected]>

Add `truncate` and `resize` methods to our OOM-handling `Vec` (#12583)


# 282546d4 11-Feb-2026 Nick Fitzgerald <[email protected]>

Implement `serde` support for our OOM-handling `SecondaryMap` (#12564)

* Implement `serde` support for our OOM-handling `SecondaryMap`

* remove duplicate impl from bad rebase


# efb98a9f 10-Feb-2026 Nick Fitzgerald <[email protected]>

Implement serialization and deserialization for `wasmtime_environ::collections::PrimaryMap` (#12560)


# 71c51d03 10-Feb-2026 Nick Fitzgerald <[email protected]>

Implement serialization and deserialization for our OOM-handling `Vec` (#12553)

* Implement serialization and deserialization for our OOM-handling `Vec`

* Review feedback


# c2112959 06-Feb-2026 Nick Fitzgerald <[email protected]>

Handle OOM in `Linker::func_wrap` (#12537)

* Handle OOM in `Linker::func_wrap`

* review feedback

* fix clippy and certain cfg builds


# 0c673b70 06-Feb-2026 Nick Fitzgerald <[email protected]>

Add a reusable `StringPool` for interning strings (#12536)

* Add a reusable `StringPool` for interning strings

And make sure it handles allocation failure.

* fix string pool tests

* Address revie

Add a reusable `StringPool` for interning strings (#12536)

* Add a reusable `StringPool` for interning strings

And make sure it handles allocation failure.

* fix string pool tests

* Address review feedback

* One more piece of review feedback that got missed

show more ...


Revision tags: v41.0.3
# e3d4b33d 04-Feb-2026 Nick Fitzgerald <[email protected]>

Our OOM-handling `Vec`'s `into_boxed_slice` method need not `realloc` when `len == cap` (#12525)


# b8e97b5b 04-Feb-2026 Nick Fitzgerald <[email protected]>

Define a `TryClone` trait for cloning with fallible allocation (#12519)

* Define a `TryClone` trait for cloning with fallible allocation

Part of https://github.com/bytecodealliance/wasmtime/issues/

Define a `TryClone` trait for cloning with fallible allocation (#12519)

* Define a `TryClone` trait for cloning with fallible allocation

Part of https://github.com/bytecodealliance/wasmtime/issues/12069

* add reason to `allow` annotation

show more ...


# 28f6f5e7 03-Feb-2026 Alex Crichton <[email protected]>

Add fallible `try_collect` to collections (#12505)

* Add fallible `try_collect` to collections

This adds a new `TryCollect` extension trait to `wasmtime-core` which
enables `iter.try_collect()` to

Add fallible `try_collect` to collections (#12505)

* Add fallible `try_collect` to collections

This adds a new `TryCollect` extension trait to `wasmtime-core` which
enables `iter.try_collect()` to fallibly collect into a `Vec<T>` or
`Box<[T]>` while handling OOM. This is intended to serve as a
replacement for the `new_boxed_slice_*` helpers in appropriate
situations since it more closely matches what Wasmtime likely already
does today where we throw `.collect()` on iterators.

* Extend oom tests a bit more

* Use a TryExtend trait

* Fix oom tests

show more ...


Revision tags: v41.0.2
# 7b929e7f 29-Jan-2026 Nick Fitzgerald <[email protected]>

Implement `IntoIterator` for our OOM-handling `Vec` (#12472)


# 9cc85ab9 29-Jan-2026 Nick Fitzgerald <[email protected]>

Implement `pop` for our OOM-handling `Vec` (#12471)


# 35483cc4 28-Jan-2026 Nick Fitzgerald <[email protected]>

Add some more OOM-handling `Box<[T]>` constructor variants (#12441)

* Add some more OOM-handling `Box<[T]>` constructor variants

Part of https://github.com/bytecodealliance/wasmtime/issues/12069

*

Add some more OOM-handling `Box<[T]>` constructor variants (#12441)

* Add some more OOM-handling `Box<[T]>` constructor variants

Part of https://github.com/bytecodealliance/wasmtime/issues/12069

* Reimplement boxed slice helpers on top of `Vec`

* Rename `DropGuard` to `BoxedSliceBuilder`

* Fix `Vec::into_raw_parts` polyfill

Need to forget `self` or else we will double-free the buffer.

show more ...


# 5999e5be 27-Jan-2026 Nick Fitzgerald <[email protected]>

Add `{into,from}_raw_parts` for our OOM-handling `Vec` (#12452)

* Add `{into,from}_raw_parts` for our OOM-handling `Vec`

* Fix build for our MSRV


# 342710ae 27-Jan-2026 Nick Fitzgerald <[email protected]>

Add `Vec::drain` method (#12449)


# e0ee4552 27-Jan-2026 Nick Fitzgerald <[email protected]>

Move `wasmtime_environ::collections::Vec` to `wasmtime_core::alloc::Vec` (#12448)