Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

chore: remove dead gc trap sentinel arm (#12514)

sashass1315584765d7814b
diff --git a/crates/environ/src/builtin.rs b/crates/environ/src/builtin.rs
index 99c9121870..e9d91bd22e 100644
--- a/crates/environ/src/builtin.rs
+++ b/crates/environ/src/builtin.rs
@@ -439,16 +439,11 @@ impl BuiltinFunctionIndex {
(@get table_grow_gc_ref pointer) => (TrapSentinel::NegativeTwo);
(@get table_grow_cont_obj pointer) => (TrapSentinel::NegativeTwo);
- // Atomics-related functions return a negative value indicating trap
- // indicate a trap.
+ // Atomics-related functions return a negative value to indicate a trap.
(@get memory_atomic_notify u64) => (TrapSentinel::Negative);
(@get memory_atomic_wait32 u64) => (TrapSentinel::Negative);
(@get memory_atomic_wait64 u64) => (TrapSentinel::Negative);
- // GC returns an optional GC ref, encoded as a `u64` with a negative
- // value indicating a trap.
- (@get gc u64) => (TrapSentinel::Negative);
-
// GC allocation functions return a u32 which is zero to indicate a
// trap.
(@get gc_alloc_raw u32) => (TrapSentinel::Falsy);