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.

2273:      PMOD_EXPORT void visit_string (struct pike_string *s, int action, void *extra)   { +  visit_enter(s, T_STRING, extra);    switch (action) {   #ifdef PIKE_DEBUG    default:
2285:    mc_counted_bytes += memory_in_string (s);    break;    } +  visit_leave(s, T_STRING, extra);   }      #ifdef PIKE_DEBUG