Enable shrunk memory by default and add related configurations (#4008)
- Enable shrunk memory by default and add related configurations - Improve error messages for memory access alignment checks - Add documentation for WAMR shrunk memory build option - Update NuttX workflow to disable shrunk memory build option
This commit is contained in:
@ -1,56 +1,3 @@
|
||||
diff --git a/test/core/imports.wast b/test/core/imports.wast
|
||||
index 0cc07cb..4e8367a 100644
|
||||
--- a/test/core/imports.wast
|
||||
+++ b/test/core/imports.wast
|
||||
@@ -86,7 +86,7 @@
|
||||
(assert_return (invoke "print64" (i64.const 24)))
|
||||
|
||||
(assert_invalid
|
||||
- (module
|
||||
+ (module
|
||||
(type (func (result i32)))
|
||||
(import "test" "func" (func (type 1)))
|
||||
)
|
||||
@@ -578,6 +578,7 @@
|
||||
(assert_return (invoke "grow" (i32.const 1)) (i32.const -1))
|
||||
(assert_return (invoke "grow" (i32.const 0)) (i32.const 2))
|
||||
|
||||
+(;
|
||||
(module $Mgm
|
||||
(memory (export "memory") 1) ;; initial size is 1
|
||||
(func (export "grow") (result i32) (memory.grow (i32.const 1)))
|
||||
@@ -586,7 +587,7 @@
|
||||
(assert_return (invoke $Mgm "grow") (i32.const 1)) ;; now size is 2
|
||||
(module $Mgim1
|
||||
;; imported memory limits should match, because external memory size is 2 now
|
||||
- (memory (export "memory") (import "grown-memory" "memory") 2)
|
||||
+ (memory (export "memory") (import "grown-memory" "memory") 2)
|
||||
(func (export "grow") (result i32) (memory.grow (i32.const 1)))
|
||||
)
|
||||
(register "grown-imported-memory" $Mgim1)
|
||||
@@ -597,7 +598,7 @@
|
||||
(func (export "size") (result i32) (memory.size))
|
||||
)
|
||||
(assert_return (invoke $Mgim2 "size") (i32.const 3))
|
||||
-
|
||||
+;)
|
||||
|
||||
;; Syntax errors
|
||||
|
||||
@@ -669,6 +670,7 @@
|
||||
"import after memory"
|
||||
)
|
||||
|
||||
+(;
|
||||
;; This module is required to validate, regardless of whether it can be
|
||||
;; linked. Overloading is not possible in wasm itself, but it is possible
|
||||
;; in modules from which wasm can import.
|
||||
@@ -695,3 +697,4 @@
|
||||
)
|
||||
"unknown import"
|
||||
)
|
||||
+;)
|
||||
\ No newline at end of file
|
||||
diff --git a/test/core/linking.wast b/test/core/linking.wast
|
||||
index 994e0f4..8fbcc02 100644
|
||||
--- a/test/core/linking.wast
|
||||
|
||||
Reference in New Issue
Block a user