summaryrefslogtreecommitdiff
path: root/ace/Malloc.i
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-12-09 21:56:38 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-12-09 21:56:38 +0000
commitb7613e9123db1aa82613601c67991e020bd1b73c (patch)
tree2b7eb550941e527315d83c04fbf81af8bfa300d6 /ace/Malloc.i
parentb822b3f79d955d778af976e3068ad23c002e01e8 (diff)
downloadATCD-b7613e9123db1aa82613601c67991e020bd1b73c.tar.gz
ChangeLogTag:Thu Dec 09 15:53:20 1999 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'ace/Malloc.i')
-rw-r--r--ace/Malloc.i39
1 files changed, 38 insertions, 1 deletions
diff --git a/ace/Malloc.i b/ace/Malloc.i
index 32b903bcf3e..109dc73784a 100644
--- a/ace/Malloc.i
+++ b/ace/Malloc.i
@@ -2,10 +2,47 @@
// $Id$
ACE_INLINE
-ACE_Name_Node::~ACE_Name_Node (void)
+ACE_Control_Block::ACE_Name_Node::~ACE_Name_Node (void)
{
}
+ACE_INLINE void
+ACE_Control_Block::ACE_Malloc_Header::init_ptr
+ (ACE_Malloc_Header **ptr, ACE_Malloc_Header *init, void *)
+{
+ *ptr = init;
+}
+
+ACE_INLINE void
+ACE_Control_Block::ACE_Name_Node::init_ptr
+ (ACE_Name_Node **ptr, ACE_Name_Node *init, void *)
+{
+ *ptr = init;
+}
+
+#if defined (ACE_HAS_POSITION_INDEPENDENT_MALLOC)
+ACE_INLINE
+ACE_PI_Control_Block::ACE_Name_Node::~ACE_Name_Node (void)
+{
+}
+
+ACE_INLINE void
+ACE_PI_Control_Block::ACE_Malloc_Header::init_ptr
+ (MALLOC_HEADER_PTR *ptr, ACE_Malloc_Header *init, void *base_addr)
+{
+ new ((void *) ptr) MALLOC_HEADER_PTR (base_addr, 0);
+ *ptr = init;
+}
+
+ACE_INLINE void
+ACE_PI_Control_Block::ACE_Name_Node::init_ptr
+ (NAME_NODE_PTR *ptr, ACE_Name_Node *init, void *base_addr)
+{
+ new ((void *) ptr) NAME_NODE_PTR (base_addr, 0);
+ *ptr = init;
+}
+#endif /* ACE_HAS_POSITION_INDEPENDENT_MALLOC */
+
ACE_INLINE void *
ACE_New_Allocator::malloc (size_t nbytes)
{