~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/memory/root.h

  • Committer: Monty Taylor
  • Date: 2009-12-23 08:01:21 UTC
  • mto: This revision was merged to the branch mainline in revision 1253.
  • Revision ID: mordred@inaugust.com-20091223080121-iveugdrewkp7iqyi
Oy. Bigger change than I normally like - but this stuff is all intertwined.
Moved a bunch of things to public drizzled/ area. Split some files. Made some
convenience libs. EVENTUALLY, some of this will be able to be re-factored, but
for now I'm ok with erring on the side of too many files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
extern "C" {
26
26
#endif
27
27
 
 
28
#define MY_KEEP_PREALLOC        1
 
29
#define MY_MARK_BLOCKS_FREE     2  /* move used to free list and reuse them */
 
30
 
 
31
#define alloc_root_inited(A) ((A)->min_malloc != 0)
 
32
#define ALLOC_ROOT_MIN_BLOCK_SIZE (MALLOC_OVERHEAD + sizeof(USED_MEM) + 8)
28
33
#define ALLOC_MAX_BLOCK_TO_DROP                 4096
29
34
#define ALLOC_MAX_BLOCK_USAGE_BEFORE_DROP       10
30
35