Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/cranelift/src/func_environ/gc/enabled/drc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ fn emit_gc_raw_alloc(
.ins()
.iconst(ir::types::I32, i64::from(kind.as_u32()));

let ty = builder.ins().iconst(ir::types::I32, i64::from(ty.as_u32()));
let ty = func_env.module_interned_to_shared_ty(&mut builder.cursor(), ty);

assert!(align.is_power_of_two());
let align = builder.ins().iconst(ir::types::I32, i64::from(align));
Expand Down
2 changes: 1 addition & 1 deletion crates/environ/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ macro_rules! foreach_builtin_function {
gc_alloc_raw(
vmctx: vmctx,
kind: u32,
module_interned_type_index: u32,
shared_type_index: u32,
size: u32,
align: u32
) -> u32;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Seeds for failure cases proptest has generated in the past. It is
# automatically read and these particular cases re-run before any
# novel cases are generated.
#
# It is recommended to check this file in to source control so that
# everyone who runs the test benefits from these saved cases.
cc b26e69fbaf46deb79652859039538e422818fd40b9afff63faa7aacbddecfd3d # shrinks to (capacity, ops) = (219544665809630458, [(10, Alloc(Layout { size: 193045289231815352, align: 8 (1 << 3) })), (10, Dealloc(Layout { size: 193045289231815352, align: 8 (1 << 3) }))])
7 changes: 7 additions & 0 deletions crates/wasmtime/src/runtime/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2057,6 +2057,13 @@ impl StoreOpaque {
.expect("attempted to access the store's GC heap before it has been allocated")
}

/// Returns a mutable reference to the GC store if it has been allocated.
#[inline]
#[cfg(feature = "gc-drc")]
pub(crate) fn try_gc_store_mut(&mut self) -> Option<&mut GcStore> {
self.gc_store.as_mut()
}

#[inline]
pub(crate) fn gc_roots(&self) -> &RootSet {
&self.gc_roots
Expand Down
Loading
Loading