Skip to content

Commit 6561a0d

Browse files
author
Robbert van Renesse
committed
Disabled interrupt trick for now
1 parent a67df47 commit 6561a0d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/charm/charm.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -391,14 +391,17 @@ static bool onestep(
391391
minheap_insert(w->results[weight], next);
392392

393393
// Check for a final interrupt after terminating
394-
if (step->ctx->terminated && step->ctx->trap_pc != 0 && !step->ctx->interruptlevel) {
394+
if (0 && step->ctx->terminated && step->ctx->trap_pc != 0 && !step->ctx->interruptlevel) {
395+
printf("TRY INTERRUPT\n");
395396
step->ctx->terminated = false;
396397
value_ctx_push(&step->ctx, (CALLTYPE_PROCESS << VALUE_BITS) | VALUE_INT);
397398
value_ctx_push(&step->ctx, step->ctx->trap_arg);
398399
step->ctx->pc = step->ctx->trap_pc;
399400
ctx = value_put_context(&global->values, step->ctx);
400401
sc->ctxbag = value_bag_add(&global->values, sc->ctxbag, after, 1);
402+
printf("INTERRUPT RECURSE\n");
401403
(void) onestep(w, next, sc, ctx, step, 0, false, true, multiplicity);
404+
printf("INTERRUPT RECURSE DONE\n");
402405
}
403406
return true;
404407
}

0 commit comments

Comments
 (0)