pike.git / src / gc.c

version» Context lines:

pike.git/src/gc.c:470:    } u;   };      static struct block_allocator ba_mixed_frame_allocator    = BA_INIT_PAGES(sizeof(struct ba_mixed_frame), 2);      void count_memory_in_ba_mixed_frames(size_t *num, size_t * size) {    ba_count_all(&ba_mixed_frame_allocator, num, size);   }    - static INLINE struct link_frame *alloc_link_frame() + static inline struct link_frame *alloc_link_frame()   {    struct ba_mixed_frame *f = ba_alloc(&ba_mixed_frame_allocator);    if (++link_frames > max_link_frames)    max_link_frames = link_frames;    return (struct link_frame *) f;   }    - static INLINE struct free_extra_frame *alloc_free_extra_frame() + static inline struct free_extra_frame *alloc_free_extra_frame()   {    struct ba_mixed_frame *f = ba_alloc(&ba_mixed_frame_allocator);    free_extra_frames++;    return (struct free_extra_frame *) f;   }    - static INLINE void really_free_link_frame (struct link_frame *f) + static inline void really_free_link_frame (struct link_frame *f)   {    link_frames--;    ba_free(&ba_mixed_frame_allocator, f);   }    - static INLINE void really_free_free_extra_frame (struct free_extra_frame *f) + static inline void really_free_free_extra_frame (struct free_extra_frame *f)   {    free_extra_frames--;    ba_free(&ba_mixed_frame_allocator, f);   }      /* These are only collected for the sake of gc_status. */   static double last_garbage_ratio = 0.0;   static enum {    GARBAGE_RATIO_LOW, GARBAGE_RATIO_HIGH, GARBAGE_MAX_INTERVAL   } last_garbage_strategy = GARBAGE_RATIO_LOW;
pike.git/src/gc.c:1888:    break;    }       default:    Pike_fatal("debug_gc_touch() used in invalid gc pass.\n");    }   }      #ifdef PIKE_DEBUG    - static INLINE struct marker *gc_check_debug(void *a, int weak) + static inline struct marker *gc_check_debug(void *a, int weak)   {    struct marker *m;       if (!a) Pike_fatal("Got null pointer.\n");    if(Pike_in_gc == GC_PASS_LOCATE)    {    if(check_for == a)    {    gdb_gc_stop_here(a, weak);    }
pike.git/src/gc.c:4578:   PMOD_EXPORT int mc_pass;   PMOD_EXPORT size_t mc_counted_bytes;      static int mc_lookahead, mc_block_pike_cycle_depth;   static TYPE_FIELD mc_block_lookahead;   static TYPE_FIELD mc_block_lookahead_default = BIT_PROGRAM|BIT_STRING|BIT_TYPE;   /* Strings are blocked because they don't contain refs. Types are    * blocked because they are acyclic and don't contain refs to anything    * but strings and other types. */    - static INLINE int mc_lookahead_blocked(unsigned INT16 type) { + static inline int mc_lookahead_blocked(unsigned INT16 type) {    if (type < sizeof(TYPE_FIELD)*8) {    return !!(mc_block_lookahead & ((TYPE_FIELD)1 << type));    }       return 0;   }      static int mc_block_strings;      static int mc_enqueued_noninternal;