Skip to content

Commit ab4e17b

Browse files
Modify logging for windows exception handler and remove unused function (#3489)
ps. #3416 #3400
1 parent f635ab9 commit ab4e17b

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

core/iwasm/common/gc/gc_type.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -846,12 +846,6 @@ wasm_is_reftype_supers_of_func(uint8 type)
846846
return (type == REF_TYPE_FUNCREF) ? true : false;
847847
}
848848

849-
inline static bool
850-
wasm_is_reftype_supers_of_extern(uint8 type)
851-
{
852-
return (type == REF_TYPE_EXTERNREF) ? true : false;
853-
}
854-
855849
#if WASM_ENABLE_STRINGREF != 0
856850
inline static bool
857851
wasm_is_reftype_supers_of_string(uint8 type)

core/iwasm/common/wasm_runtime_common.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,14 @@ runtime_exception_handler(EXCEPTION_POINTERS *exce_info)
384384
return ret;
385385
}
386386
#endif
387+
else {
388+
LOG_WARNING("Unhandled exception thrown: exception code: 0x%lx, "
389+
"exception address: %p, exception information: %p\n",
390+
ExceptionRecord->ExceptionCode,
391+
ExceptionRecord->ExceptionAddress, sig_addr);
392+
}
387393
}
388394

389-
LOG_ERROR("Unhandled exception thrown: exception code: 0x%lx, "
390-
"exception address: %p, exception information: %p\n",
391-
ExceptionRecord->ExceptionCode, ExceptionRecord->ExceptionAddress,
392-
sig_addr);
393395
return EXCEPTION_CONTINUE_SEARCH;
394396
}
395397
#endif /* end of BH_PLATFORM_WINDOWS */

0 commit comments

Comments
 (0)