Skip to content

Commit

Permalink
Removed QM_JOIN_FREE defines
Browse files Browse the repository at this point in the history
Permanently enable the QM allocator feature to join adjacent free fragments.
  • Loading branch information
razvancrainea committed May 22, 2014
1 parent b9336ea commit 24ace9f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mem/q_malloc.c
Expand Up @@ -434,11 +434,9 @@ void qm_free(struct qm_block* qm, void* p)
#endif
{
struct qm_frag* f;
#ifdef QM_JOIN_FREE
struct qm_frag* prev;
struct qm_frag* next;
unsigned long size;
#endif

#ifdef DBG_QM_MALLOC
LM_GEN1( memlog, "params(%p, %p), called from %s: %s(%d)\n",
Expand All @@ -465,7 +463,6 @@ void qm_free(struct qm_block* qm, void* p)
f, f->file, f->func, f->line);
#endif

#ifdef QM_JOIN_FREE
size=f->size;
/* join packets if possible*/
prev=next=0;
Expand Down Expand Up @@ -499,7 +496,6 @@ void qm_free(struct qm_block* qm, void* p)
}
f->size=size;
FRAG_END(f)->size=f->size;
#endif /* QM_JOIN_FREE*/
#ifdef DBG_QM_MALLOC
f->file=file;
f->func=func;
Expand Down

0 comments on commit 24ace9f

Please sign in to comment.