mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-07-02 23:50:47 +02:00
Pin struct unboxed_fields
* libguile/struct.c (set_vtable_access_fields): Pin unboxed_fields, so that we can access it from within struct trace function.
This commit is contained in:
parent
fecd6c00e4
commit
9eb4d960cd
1 changed files with 2 additions and 0 deletions
|
@ -144,6 +144,8 @@ set_vtable_access_fields (SCM vtable)
|
|||
scm_ash (SCM_INUM1,
|
||||
scm_from_size_t (field)));
|
||||
|
||||
scm_gc_pin_object (SCM_I_CURRENT_THREAD, unboxed_fields);
|
||||
|
||||
/* Record computed size of vtable's instances. */
|
||||
SCM_SET_VTABLE_FLAGS (vtable, 0);
|
||||
SCM_STRUCT_DATA_SET (vtable, scm_vtable_index_size, nfields);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue