mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 00:30:21 +02:00
vm caches the dynamic state in a local var
* libguile/vm-engine.c (vm_engine): Cache the dynamic state in a local var when we enter the VM. * libguile/vm-i-system.c (wind-fluids, unwind-fluids): Use the cached dynamic state instead of going through SCM_I_CURRENT_THREAD.
This commit is contained in:
parent
6e84cb95b1
commit
26e6f99fc3
2 changed files with 3 additions and 2 deletions
|
@ -47,6 +47,7 @@ VM_NAME (SCM vm, SCM program, SCM *argv, int nargs)
|
|||
SCM *objects = NULL; /* constant objects */
|
||||
size_t object_count = 0; /* length of OBJECTS */
|
||||
SCM *stack_limit = vp->stack_limit; /* stack limit address */
|
||||
SCM dynstate = SCM_I_CURRENT_THREAD->dynamic_state;
|
||||
|
||||
/* Internal variables */
|
||||
int nvalues = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue