Always allocate linear memory using mmap (#3052)
With this approach we can omit using memset() for the newly allocated memory therefore the physical pages are not being used unless touched by the program. This also simplifies the implementation.
This commit is contained in:
@ -188,6 +188,10 @@
|
||||
#define WASM_ENABLE_APP_FRAMEWORK 0
|
||||
#endif
|
||||
|
||||
#ifndef WASM_HAVE_MREMAP
|
||||
#define WASM_HAVE_MREMAP 0
|
||||
#endif
|
||||
|
||||
/* Bulk memory operation */
|
||||
#ifndef WASM_ENABLE_BULK_MEMORY
|
||||
#define WASM_ENABLE_BULK_MEMORY 0
|
||||
@ -521,9 +525,4 @@
|
||||
#define WASM_ENABLE_QUICK_AOT_ENTRY 1
|
||||
#endif
|
||||
|
||||
/* Disable mmap based shared memory by default */
|
||||
#ifndef WASM_ENABLE_SHARED_MEMORY_MMAP
|
||||
#define WASM_ENABLE_SHARED_MEMORY_MMAP 0
|
||||
#endif
|
||||
|
||||
#endif /* end of _CONFIG_H_ */
|
||||
|
||||
Reference in New Issue
Block a user