move the CONFIG_WAMR_MEM_ALLOC_WITH_USAGE in nuttx

move the CONFIG_WAMR_MEM_ALLOC_WITH_USAGE in nuttx
This commit is contained in:
Dongsheng.Yan 2024-04-15 09:30:43 +08:00
parent bcb5cde2af
commit 9d01595a70
3 changed files with 4 additions and 7 deletions

View File

@ -826,7 +826,6 @@ wasm_enlarge_memory_internal(WASMModuleInstance *module, uint32 inc_page_count)
goto return_func;
}
#
if (heap_size > 0) {
if (mem_allocator_migrate(memory->heap_handle,
(char *)heap_data_old
@ -969,7 +968,6 @@ wasm_allocate_linear_memory(uint8 **data, bool is_shared_memory,
* so the range of ea is 0 to 8G
*/
map_size = 8 * (uint64)BH_GB;
#endif /* end of OS_ENABLE_HW_BOUND_CHECK */
page_size = os_getpagesize();

View File

@ -123,11 +123,6 @@ if (WAMR_BUILD_DEBUG_INTERP EQUAL 1)
set (WAMR_BUILD_SIMD 0)
endif ()
if (NOT DEFINED WAMR_MEM_ALLOC_WITH_USAGE)
# Disable Debug feature by default
set (WAMR_MEM_ALLOC_WITH_USAGE 1)
endif ()
set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
include (${WAMR_ROOT_DIR}/build-scripts/runtime_lib.cmake)

View File

@ -185,6 +185,10 @@ if(CONFIG_INTERPRETERS_WAMR_LIB_PTHREAD)
set(WAMR_BUILD_LIB_PTHREAD 1)
endif()
if (CONFIG_WAMR_MEM_ALLOC_WITH_USAGE)
set (WAMR_MEM_ALLOC_WITH_USAGE 1)
endif ()
set(WAMR_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR}/../../..)
# enable WAMR build system