From 18b01b5d16c534cb740df9018fc363c057927217 Mon Sep 17 00:00:00 2001 From: zach Date: Mon, 16 Oct 2023 17:48:44 -0700 Subject: [PATCH] fix: undo change to `extism_memory_bytes` left over from debugging (#519) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: zshipko --- kernel/src/lib.rs | 2 +- runtime/src/extism-runtime.wasm | Bin 3592 -> 3592 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/lib.rs b/kernel/src/lib.rs index f42a18a..2fb438b 100644 --- a/kernel/src/lib.rs +++ b/kernel/src/lib.rs @@ -517,5 +517,5 @@ pub unsafe fn extism_error_get() -> Pointer { /// Get the position of the allocator, this can be used as an indication of how many bytes are currently in-use #[no_mangle] pub unsafe fn extism_memory_bytes() -> Length { - MemoryRoot::new().length.load(Ordering::Acquire) + MemoryRoot::new().position.load(Ordering::Acquire) } diff --git a/runtime/src/extism-runtime.wasm b/runtime/src/extism-runtime.wasm index 5f3ead822fa9eb8d240de8e58ca2c39fcab30fd0..52d18e5ae589839733d265810ceff2e5c0c6531d 100755 GIT binary patch delta 13 UcmeB>>5$p5f|rqD@=D%#03XH#R{#J2 delta 13 UcmeB>>5$p5f|rqF@=D%#03YrIUjP6A