From c39eb46b6fa9d27f8bc835bf18b4e76ab84e7305 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 30 Jun 2023 11:22:46 +0900 Subject: [PATCH] Add a few more assertions on structures to which aot abi is sensitive (#2326) --- core/iwasm/aot/aot_runtime.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/iwasm/aot/aot_runtime.c b/core/iwasm/aot/aot_runtime.c index 815704bd0..35735b94e 100644 --- a/core/iwasm/aot/aot_runtime.c +++ b/core/iwasm/aot/aot_runtime.c @@ -42,6 +42,9 @@ bh_static_assert(offsetof(AOTModuleInstance, cur_exception) bh_static_assert(offsetof(AOTModuleInstance, global_table_data) == 13 * sizeof(uint64) + 128 + 11 * sizeof(uint64)); +bh_static_assert(sizeof(AOTMemoryInstance) == 104); +bh_static_assert(offsetof(AOTTableInstance, elems) == 8); + bh_static_assert(offsetof(AOTModuleInstanceExtra, stack_sizes) == 0); static void