chore: debug current_sandbox_get

main
Sean McBride 4 years ago
parent 2a11e24c35
commit 6306b46ea1

@ -139,6 +139,13 @@ worker_thread_switch_to_base_context()
assert(!software_interrupt_is_enabled()); assert(!software_interrupt_is_enabled());
struct sandbox *current_sandbox = current_sandbox_get(); struct sandbox *current_sandbox = current_sandbox_get();
#ifndef NDEBUG
if (current_sandbox != NULL) {
assert(current_sandbox->state < SANDBOX_STATE_COUNT);
assert(current_sandbox->stack_size == current_sandbox->module->stack_size);
}
#endif
worker_thread_transition_exiting_sandbox(current_sandbox); worker_thread_transition_exiting_sandbox(current_sandbox);
/* Assumption: Base Context should never switch to Base Context */ /* Assumption: Base Context should never switch to Base Context */

Loading…
Cancel
Save