Skip to content
Permalink
Browse files

OPS-6: HP_MALLOC is once again functional

  • Loading branch information
liviuchircu committed Mar 13, 2019
1 parent 67ed0cc commit 5e6cf56ff94145b11388c00468e46283bf2ab69e
Showing with 1,097 additions and 899 deletions.
  1. +2 −0 mem/common.h
  2. +3 −3 mem/f_malloc_dyn.h
  3. +10 −862 mem/hp_malloc.c
  4. +5 −8 mem/hp_malloc.h
  5. +1,012 −0 mem/hp_malloc_dyn.h
  6. +6 −6 mem/mem.c
  7. +3 −3 mem/mem.h
  8. +3 −1 mem/qm_malloc_dyn.h
  9. +35 −7 mem/shm_mem.c
  10. +18 −9 mem/shm_mem.h
@@ -86,6 +86,8 @@ typedef void (*osips_free_f) (void *block, void *ptr);
abort(); \
} \
} while (0)
#else
#define check_double_free(ptr, frag, block)
#endif

#endif
@@ -239,11 +239,11 @@ void fm_free(struct fm_block* qm, void* p, const char* file,
}
f=(struct fm_frag*) ((char*)p-sizeof(struct fm_frag));

#ifdef DBG_MALLOC
check_double_free(p, f, qm);

LM_GEN1(memlog, "freeing block alloc'ed from %s: %s(%ld)\n", f->file, f->func,
f->line);
#ifdef DBG_MALLOC
LM_GEN1(memlog, "freeing block alloc'ed from %s: %s(%ld)\n",
f->file, f->func, f->line);
#endif

join:

0 comments on commit 5e6cf56

Please sign in to comment.
You can’t perform that action at this time.