summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-05-03 21:03:59 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-05-03 21:03:59 +0000
commit59bfb206d1782538a24a9e752b6421c6d3cee298 (patch)
tree535ba8d6c11fdc42f54c8d3a7a7c182270f65c08 /ace
parentabb95c97c84069e80d23ce1be15b4926d81b41de (diff)
downloadATCD-59bfb206d1782538a24a9e752b6421c6d3cee298.tar.gz
ChangeLogTag:Thu May 3 16:00:15 2001 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'ace')
-rw-r--r--ace/Malloc.h2
-rw-r--r--ace/PI_Malloc.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/ace/Malloc.h b/ace/Malloc.h
index 3c4b6cc745e..68b9c2b015c 100644
--- a/ace/Malloc.h
+++ b/ace/Malloc.h
@@ -370,11 +370,13 @@ public:
ACE_Malloc_Stats malloc_stats_;
#define ACE_CONTROL_BLOCK_SIZE ((int)(sizeof (ACE_Name_Node*) \
+ sizeof (ACE_Malloc_Header*) \
+ + sizeof (int) \
+ MAXNAMELEN \
+ sizeof (ACE_Malloc_Stats)))
#else
#define ACE_CONTROL_BLOCK_SIZE ((int)(sizeof (ACE_Name_Node*) \
+ sizeof (ACE_Malloc_Header*) \
+ + sizeof (int) \
+ MAXNAMELEN))
#endif /* ACE_HAS_MALLOC_STATS */
diff --git a/ace/PI_Malloc.h b/ace/PI_Malloc.h
index ef7d39f160f..fcb0b0bbb75 100644
--- a/ace/PI_Malloc.h
+++ b/ace/PI_Malloc.h
@@ -165,11 +165,13 @@ public:
ACE_Malloc_Stats malloc_stats_;
#define ACE_PI_CONTROL_BLOCK_SIZE ((int)(sizeof (NAME_NODE_PTR) \
+ sizeof (MALLOC_HEADER_PTR) \
+ + sizeof (int) \
+ MAXNAMELEN \
+ sizeof (ACE_Malloc_Stats)))
#else
#define ACE_PI_CONTROL_BLOCK_SIZE ((int)(sizeof (NAME_NODE_PTR) \
+ sizeof (MALLOC_HEADER_PTR) \
+ + sizeof (int) \
+ MAXNAMELEN))
#endif /* ACE_HAS_MALLOC_STATS */