mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
if we have no eval.go, load no .go
* libguile/load.c (scm_init_eval_in_scheme): If we have no eval.go, null out the load-compiled path so that we load no compiled code. Prevents partially compiled Guile from turning tail-calls into stack-munching calls.
This commit is contained in:
parent
08d7492cf0
commit
ed1bf2c85c
1 changed files with 3 additions and 0 deletions
|
@ -851,6 +851,9 @@ scm_init_eval_in_scheme (void)
|
||||||
if (scm_is_true (eval_scm) && scm_is_true (eval_go)
|
if (scm_is_true (eval_scm) && scm_is_true (eval_go)
|
||||||
&& compiled_is_fresh (eval_scm, eval_go))
|
&& compiled_is_fresh (eval_scm, eval_go))
|
||||||
scm_load_compiled_with_vm (eval_go);
|
scm_load_compiled_with_vm (eval_go);
|
||||||
|
else
|
||||||
|
/* if we have no eval.go, we shouldn't load any compiled code at all */
|
||||||
|
*scm_loc_load_compiled_path = SCM_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue