@ -181,7 +181,7 @@ sandbox_state_stringify(sandbox_state_t state)
return "Error";
default:
/* Crash, as this should be exclusive */
assert(0);
abort();
}
@ -1,7 +1,7 @@
#include <assert.h>
#include <pthread.h>
#include <signal.h>
#include <stdbool.h>
#include <stdlib.h>
/**
* Called by the inline assembly in arch_context_switch to send a SIGUSR1 in order to restore a previously preempted
@ -12,5 +12,5 @@
void __attribute__((noinline)) __attribute__((noreturn)) arch_context_restore_preempted(void)
{
pthread_kill(pthread_self(), SIGUSR1);
assert(false);
@ -1,3 +1,4 @@
#include <uv.h>
#include "current_sandbox.h"
@ -627,7 +628,7 @@ wasm_fcntl(uint32_t file_descriptor, uint32_t cmd, uint32_t arg_or_lock_ptr)
case WF_SETLK:
return 0;
@ -2,6 +2,7 @@
#include <sched.h>
#include <sys/mman.h>
@ -311,5 +312,5 @@ worker_thread_on_sandbox_exit(struct sandbox *exiting_sandbox)
assert(!software_interrupt_is_enabled());
worker_thread_dump_lock_overhead();
worker_thread_switch_to_base_context();