pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:2179:   #endif    }    base_table[e]=0;    UNLOCK_BUCKET(e);    }    free((char *)base_table);    base_table=0;    num_strings=0;      #ifdef DO_PIKE_CLEANUP + # ifdef PIKE_NEW_BLOCK_ALLOC +  ba_destroy(string_allocator+0); +  ba_destroy(string_allocator+1); +  ba_destroy(string_allocator+2); + # else    free_all_short_pike_string0_blocks();    free_all_short_pike_string1_blocks();    free_all_short_pike_string2_blocks(); -  + # endif   #endif /* DO_PIKE_CLEANUP */   }      static INLINE size_t memory_in_string (struct pike_string *s)   {    if (s->len <= SHORT_STRING_THRESHOLD)    switch (s->size_shift) {    case 0: return sizeof (struct short_pike_string0);    case 1: return sizeof (struct short_pike_string1);    default: return sizeof (struct short_pike_string2);