Branch: Tag:


2014-06-18 13:31:26 by Henrik Grubbström (Grubba) <>

GC: Added visit_{enter,leave}() API.

Make it easier to keep track of state in the visit_*() API
by tracking when we start and stop visiting things.

2797:      PMOD_EXPORT void visit_array (struct array *a, int action, void *extra)   { +  visit_enter(a, T_ARRAY, extra);    switch (action) {   #ifdef PIKE_DEBUG    default:
2818:    for (e = 0; e < s; e++)    visit_svalue (ITEM (a) + e, ref_type, extra);    } +  visit_leave(a, T_ARRAY, extra);   }      static void gc_check_array(struct array *a)