|
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, v43.0.0 |
|
| #
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
|
| #
d8e213f7 |
| 04-Mar-2026 |
Nick Fitzgerald <[email protected]> |
Rename our OOM-handling `String` to `TryString` (#12720)
|
|
Revision tags: v42.0.1 |
|
| #
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 |
|
| #
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 ...
|
| #
bf42bd4f |
| 05-Feb-2026 |
Nick Fitzgerald <[email protected]> |
Add a fallible-allocation-only version of `String` (#12534)
* Add a fallible-allocation-only version of `String`
* oom test for push_str
|
|
Revision tags: v41.0.3 |
|
| #
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 |
|
| #
4c2e3d29 |
| 28-Jan-2026 |
Nick Fitzgerald <[email protected]> |
Add `PanicOnOom` extension trait (#12461)
To make it clear that we are only ignoring OOM errors, and not hiding the unwrapping of other kinds of errors, in our various TODOs for https://github.com/b
Add `PanicOnOom` extension trait (#12461)
To make it clear that we are only ignoring OOM errors, and not hiding the unwrapping of other kinds of errors, in our various TODOs for https://github.com/bytecodealliance/wasmtime/issues/12069
show more ...
|
| #
c0e42072 |
| 28-Jan-2026 |
Nick Fitzgerald <[email protected]> |
Add `wasmtime_core::alloc` functions to allocate uninitialized boxed slices and write iterators into them to initialize them (#12460)
* Add `wasmtime_core::alloc` functions to allocate uninitialized
Add `wasmtime_core::alloc` functions to allocate uninitialized boxed slices and write iterators into them to initialize them (#12460)
* Add `wasmtime_core::alloc` functions to allocate uninitialized boxed slices and write iterators into them to initialize them
* Fix doc link
show more ...
|
| #
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 ...
|
| #
e0ee4552 |
| 27-Jan-2026 |
Nick Fitzgerald <[email protected]> |
Move `wasmtime_environ::collections::Vec` to `wasmtime_core::alloc::Vec` (#12448)
|
|
Revision tags: v41.0.1, v36.0.5, v40.0.3 |
|
| #
8325e1ec |
| 23-Jan-2026 |
Alex Crichton <[email protected]> |
Fold the `wasmtime-error` crate into `wasmtime-core` (#12418)
Similar to #12398 and #12407 the idea is that all our dependency-free (mostly) data structures and foundational data-types are in one lo
Fold the `wasmtime-error` crate into `wasmtime-core` (#12418)
Similar to #12398 and #12407 the idea is that all our dependency-free (mostly) data structures and foundational data-types are in one location to centralize testing, ergonomics, documentation, idioms, etc.
show more ...
|
| #
233f1875 |
| 22-Jan-2026 |
Nick Fitzgerald <[email protected]> |
Add fallible allocation methods to `cranelift_bitset::CompoundBitSet` (#12381)
* Add fallible allocation methods to `cranelift_bitset::CompoundBitSet`
Part of https://github.com/bytecodealliance/wa
Add fallible allocation methods to `cranelift_bitset::CompoundBitSet` (#12381)
* Add fallible allocation methods to `cranelift_bitset::CompoundBitSet`
Part of https://github.com/bytecodealliance/wasmtime/issues/12069
* Add OOM tests for `CompoundBitSet` fallible allocation methods
* Create the `wasmtime-internal-core` crate
And move allocation helpers from `wasmtime_environ::collections` to `wasmtime_core::alloc`, with a re-export through the old location for higher-level helpers.
* Split `wasmtime_core::alloc` up into modules
* Add the `wasmtime_core::alloc::new_boxed_slice_from_iter` helper
* Use `new_boxed_slice_from_iter` in `cranelift_bitset::CompoundBitSet`
* Use `Box::assume_init`
show more ...
|