pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.c:255:    */   static struct block_allocator type_allocator = BA_INIT(sizeof(struct pike_type), 128);      PMOD_EXPORT void really_free_pike_type(struct pike_type * t) {    ba_free(&type_allocator, t);   }      ATTRIBUTE((malloc))   PMOD_EXPORT struct pike_type * alloc_pike_type(void) {    struct pike_type *t = ba_alloc(&type_allocator); -  gc_init_marker(&t->m); +  gc_init_marker(t);    return t;   }      PMOD_EXPORT void count_memory_in_pike_types(size_t *n, size_t *s) {    ba_count_all(&type_allocator, n, s);   }      struct pike_type **pike_type_hash = NULL;   size_t pike_type_hash_size = 0;   
pike.git/src/pike_types.c:552: Inside #if defined(PIKE_DEBUG)
     #ifdef PIKE_DEBUG    if ((type == T_OR) && (car->type == T_OR)) {    Pike_fatal("Invalid CAR to OR node.\n");    }   #endif       debug_malloc_pass(t = ba_alloc(&type_allocator));       t->refs = 0; -  gc_init_marker(&t->m); +  gc_init_marker(t);    add_ref(t); /* For DMALLOC... */    t->type = type;    t->flags = 0;    t->car = car;    t->cdr = cdr;       t->hash = hash;    t->next = pike_type_hash[index];    pike_type_hash[index] = t;