pike.git / src / gc.c

version» Context lines:

pike.git/src/gc.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: gc.c,v 1.275 2006/03/10 06:58:03 mast Exp $ + || $Id: gc.c,v 1.276 2006/07/05 02:17:09 mast Exp $   */      #include "global.h"      struct callback *gc_evaluator_callback=0;      #include "array.h"   #include "multiset.h"   #include "mapping.h"   #include "object.h"
pike.git/src/gc.c:343: Inside #if defined (PIKE_DEBUG) || defined (GC_MARK_DEBUG)
     #if defined (PIKE_DEBUG) || defined (GC_MARK_DEBUG)   void *gc_found_in = NULL;   int gc_found_in_type = PIKE_T_UNKNOWN;   const char *gc_found_place = NULL;   #endif      #ifdef DO_PIKE_CLEANUP   /* To keep the markers after the gc. Only used for the leak report at exit. */   int gc_keep_markers = 0; - int gc_external_refs_zapped = 0; + PMOD_EXPORT int gc_external_refs_zapped = 0;   #endif      #ifdef PIKE_DEBUG      #undef get_marker   #define get_marker(X) ((struct marker *) debug_malloc_pass(debug_get_marker(X)))   #undef find_marker   #define find_marker(X) ((struct marker *) debug_malloc_pass(debug_find_marker(X)))      int gc_in_cycle_check = 0;
pike.git/src/gc.c:1699: Inside #if defined(PIKE_DEBUG)
  #ifdef PIKE_DEBUG    if (gc_is_watching) {    fprintf(stderr, "## Exiting gc and resetting watches for %d things.\n",    gc_is_watching);    gc_is_watching = 0;    }   #endif   }      #ifdef PIKE_DEBUG - void gc_check_zapped (void *a, TYPE_T type, const char *file, int line) + PMOD_EXPORT void gc_check_zapped (void *a, TYPE_T type, const char *file, int line)   {    struct marker *m = find_marker (a);    if (m && (m->flags & GC_CLEANUP_FREED))    fprintf (stderr, "Free of leaked %s %p from %s:%d, %d refs remaining\n",    get_name_of_type (type), a, file, line, *(INT32 *)a - 1);   }   #endif      #ifdef PIKE_DEBUG   /* This function marks some known externals. The rest are handled by