mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 20:00:19 +02:00
Sync IP before allocating closures
* libguile/vm-engine.c (vm_engine): Sync IP before allocating closures.
This commit is contained in:
parent
a1793bc904
commit
07b7490f73
1 changed files with 1 additions and 0 deletions
|
@ -1646,6 +1646,7 @@ VM_NAME (scm_i_thread *thread, struct scm_vm *vp,
|
|||
UNPACK_24 (ip[2], nfree);
|
||||
|
||||
// FIXME: Assert range of nfree?
|
||||
SYNC_IP ();
|
||||
closure = scm_inline_words (thread, scm_tc7_program | (nfree << 16),
|
||||
nfree + 2);
|
||||
SCM_SET_CELL_WORD_1 (closure, ip + offset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue