mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
Boost fuel on sexp_apply_no_err_handler so we don't switch threads.
This commit is contained in:
parent
c0b9a213c9
commit
2c6ca1229d
1 changed files with 1 additions and 0 deletions
1
vm.c
1
vm.c
|
@ -2143,6 +2143,7 @@ sexp sexp_apply_no_err_handler (sexp ctx, sexp proc, sexp args) {
|
||||||
#if SEXP_USE_GREEN_THREADS
|
#if SEXP_USE_GREEN_THREADS
|
||||||
params = sexp_context_params(ctx);
|
params = sexp_context_params(ctx);
|
||||||
sexp_context_params(ctx) = SEXP_NULL;
|
sexp_context_params(ctx) = SEXP_NULL;
|
||||||
|
++sexp_context_refuel(ctx);
|
||||||
#endif
|
#endif
|
||||||
err_cell = sexp_global(ctx, SEXP_G_ERR_HANDLER);
|
err_cell = sexp_global(ctx, SEXP_G_ERR_HANDLER);
|
||||||
err_cell = sexp_opcodep(err_cell) ? sexp_opcode_data(err_cell) : SEXP_FALSE;
|
err_cell = sexp_opcodep(err_cell) ? sexp_opcode_data(err_cell) : SEXP_FALSE;
|
||||||
|
|
Loading…
Add table
Reference in a new issue