Changeset 2633 for trunk/src/kmk/make.h


Ignore:
Timestamp:
Sep 9, 2012, 1:18:59 AM (13 years ago)
Author:
bird
Message:

kmk: CONFIG_WITH_ALLOCCACHE_DEBUG - for optionally turning the allocations over to the heap where they can be checked and fenced in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/make.h

    r2591 r2633  
    639639alloccache_alloc (struct alloccache *cache)
    640640{
    641   struct alloccache_free_ent *f = cache->free_head;
     641  struct alloccache_free_ent *f;
     642# ifndef CONFIG_WITH_ALLOCCACHE_DEBUG
     643  f = cache->free_head;
    642644  if (f)
    643645    cache->free_head = f->next;
     
    648650    }
    649651  else
     652# endif
    650653    f = alloccache_alloc_grow (cache);
    651654  MAKE_STATS(cache->alloc_count++;);
Note: See TracChangeset for help on using the changeset viewer.