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
55a8483435
commit
b294a1e7d7
1 changed files with 1 additions and 0 deletions
|
@ -1552,6 +1552,7 @@ VM_NAME (scm_i_thread *thread, struct scm_vm *vp,
|
||||||
UNPACK_24 (ip[2], nfree);
|
UNPACK_24 (ip[2], nfree);
|
||||||
|
|
||||||
// FIXME: Assert range of nfree?
|
// FIXME: Assert range of nfree?
|
||||||
|
SYNC_IP ();
|
||||||
closure = scm_inline_words (thread, scm_tc7_program | (nfree << 16),
|
closure = scm_inline_words (thread, scm_tc7_program | (nfree << 16),
|
||||||
nfree + 2);
|
nfree + 2);
|
||||||
SCM_SET_CELL_WORD_1 (closure, ip + offset);
|
SCM_SET_CELL_WORD_1 (closure, ip + offset);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue