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 <zshipko@users.noreply.github.com>
This commit is contained in:
zach
2023-10-16 17:48:44 -07:00
committed by GitHub
parent 6e0fd3baa1
commit 18b01b5d16
2 changed files with 1 additions and 1 deletions

View File

@@ -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)
}