Module: xenomai-forge
Branch: master
Commit: bafba1d74a92d7e49e2eff6c875513c27ebf008c
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=bafba1d74a92d7e49e2eff6c875513c27ebf008c

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Dec 14 10:55:05 2011 +0100

copperplate/heapobj-malloc: remove preposterous overhead accounting

---

 lib/copperplate/heapobj-malloc.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/lib/copperplate/heapobj-malloc.c b/lib/copperplate/heapobj-malloc.c
index fa4db76..a39abe4 100644
--- a/lib/copperplate/heapobj-malloc.c
+++ b/lib/copperplate/heapobj-malloc.c
@@ -23,8 +23,6 @@
 #include "copperplate/heapobj.h"
 #include "copperplate/debug.h"
 
-#define MALLOC_BLOCK_OVERHEAD  8
-
 int heapobj_init_private(struct heapobj *hobj, const char *name,
                         size_t size, void *mem)
 {
@@ -47,7 +45,6 @@ int heapobj_init_private(struct heapobj *hobj, const char 
*name,
 int heapobj_init_array_private(struct heapobj *hobj, const char *name,
                               size_t size, int elems)
 {
-       size += MALLOC_BLOCK_OVERHEAD;
        return __bt(heapobj_init_private(hobj, name, size * elems, NULL));
 }
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to