Re-org thread env init/destroy for HW bound check (#631)
And fix cmake_minimum_required() deprecation warning since envoy is using cmake 3.16 or higher version.
This commit is contained in:
@ -14,9 +14,6 @@ bh_platform_init()
|
||||
void
|
||||
bh_platform_destroy()
|
||||
{
|
||||
#ifdef OS_ENABLE_HW_BOUND_CHECK
|
||||
os_thread_destroy_stack_guard_pages();
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
@ -75,15 +75,13 @@ typedef jmp_buf korp_jmpbuf;
|
||||
|
||||
#define os_getpagesize getpagesize
|
||||
|
||||
bool os_thread_init_stack_guard_pages();
|
||||
|
||||
void os_thread_destroy_stack_guard_pages();
|
||||
|
||||
typedef void (*os_signal_handler)(void *sig_addr);
|
||||
|
||||
int os_signal_init(os_signal_handler handler);
|
||||
int os_thread_signal_init(os_signal_handler handler);
|
||||
|
||||
void os_signal_destroy();
|
||||
void os_thread_signal_destroy();
|
||||
|
||||
bool os_thread_signal_inited();
|
||||
|
||||
void os_signal_unmask();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user