pike.git / src / gc.c

version» Context lines:

pike.git/src/gc.c:3394: Inside #if 0
   else *obj_arr_ = resize_array(*obj_arr_, 0);    }    if (!p) break;    }    }       CALL_AND_UNSET_ONERROR(tmp);   #endif   }    - size_t do_gc(void *UNUSED(ignored), int explicit_call) + size_t do_gc(int explicit_call)   {    ALLOC_COUNT_TYPE start_allocs;    size_t start_num_objs, unreferenced;    cpu_time_t gc_start_time, gc_start_real_time;    ptrdiff_t objs, pre_kill_objs;   #if defined (PIKE_DEBUG) || defined (DO_PIKE_CLEANUP)    unsigned destruct_count;   #endif   #ifdef PIKE_DEBUG    unsigned obj_count;
pike.git/src/gc.c:4097:       if (!SAFE_IS_ZERO(&gc_done_cb)) {    push_int(unreferenced);    safe_apply_svalue(&gc_done_cb, 1, 1);    pop_stack();    }       return unreferenced;   }    + void do_gc_callback(struct callback *UNUSED(cb), void *UNUSED(arg1), +  void *UNUSED(arg2)) + { +  do_gc(0); + } +    /*! @decl mapping(string:int|float) gc_status()    *! @belongs Debug    *!    *! Get statistics from the garbage collector.    *!    *! @returns    *! A mapping with the following content will be returned:    *! @mapping    *! @member int "num_objects"    *! Number of arrays, mappings, multisets, objects and programs.