Branch: Tag:

2014-12-04

2014-12-04 19:26:38 by Henrik Grubbström (Grubba) <grubba@grubba.org>

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)