From 953a1b0e7bb9f5cdcb1d3e2718bf2a5779c6fec2 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 19 Feb 2016 16:19:21 -0800 Subject: Make `grow_memory` return the old memory size. This implements the discussion in bug #525. --- AstSemantics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AstSemantics.md') diff --git a/AstSemantics.md b/AstSemantics.md index 1924810..2e92fd0 100644 --- a/AstSemantics.md +++ b/AstSemantics.md @@ -206,7 +206,7 @@ which is 64KiB on all engines (though large page support may be added in the [future](FutureFeatures.md#large-page-support)). * `grow_memory` : grow linear memory by a given unsigned delta which - must be a multiple of the page size. + must be a multiple of the page size. Return the previous memory size. As stated [above](AstSemantics.md#linear-memory), linear memory is contiguous, meaning there are no "holes" in the linear address space. After the -- cgit v1.2.3