From ab4e17b701e1a449492704d771902a4a48a1c181 Mon Sep 17 00:00:00 2001 From: TianlongLiang <111852609+TianlongLiang@users.noreply.github.com> Date: Fri, 31 May 2024 13:07:56 +0800 Subject: [PATCH] Modify logging for windows exception handler and remove unused function (#3489) ps. https://github.com/bytecodealliance/wasm-micro-runtime/issues/3416 https://github.com/bytecodealliance/wasm-micro-runtime/issues/3400 --- core/iwasm/common/gc/gc_type.c | 6 ------ core/iwasm/common/wasm_runtime_common.c | 10 ++++++---- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/core/iwasm/common/gc/gc_type.c b/core/iwasm/common/gc/gc_type.c index 5ade1cb2..c9e6d206 100644 --- a/core/iwasm/common/gc/gc_type.c +++ b/core/iwasm/common/gc/gc_type.c @@ -846,12 +846,6 @@ wasm_is_reftype_supers_of_func(uint8 type) return (type == REF_TYPE_FUNCREF) ? true : false; } -inline static bool -wasm_is_reftype_supers_of_extern(uint8 type) -{ - return (type == REF_TYPE_EXTERNREF) ? true : false; -} - #if WASM_ENABLE_STRINGREF != 0 inline static bool wasm_is_reftype_supers_of_string(uint8 type) diff --git a/core/iwasm/common/wasm_runtime_common.c b/core/iwasm/common/wasm_runtime_common.c index 6f250861..3b08d3ec 100644 --- a/core/iwasm/common/wasm_runtime_common.c +++ b/core/iwasm/common/wasm_runtime_common.c @@ -384,12 +384,14 @@ runtime_exception_handler(EXCEPTION_POINTERS *exce_info) return ret; } #endif + else { + LOG_WARNING("Unhandled exception thrown: exception code: 0x%lx, " + "exception address: %p, exception information: %p\n", + ExceptionRecord->ExceptionCode, + ExceptionRecord->ExceptionAddress, sig_addr); + } } - LOG_ERROR("Unhandled exception thrown: exception code: 0x%lx, " - "exception address: %p, exception information: %p\n", - ExceptionRecord->ExceptionCode, ExceptionRecord->ExceptionAddress, - sig_addr); return EXCEPTION_CONTINUE_SEARCH; } #endif /* end of BH_PLATFORM_WINDOWS */