From f98fb793540a8adb44ab90f076e67218fc346a0a Mon Sep 17 00:00:00 2001 From: bala Date: Thu, 20 Feb 2003 17:37:33 +0000 Subject: ChangeLogTag: Wed Feb 12 12:40:21 2003 Balachandran Natarajan --- TAO/tao/ChangeLog | 6 ++++++ ace/Connector.cpp | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/TAO/tao/ChangeLog b/TAO/tao/ChangeLog index 2fae2e4183d..13cce100d1f 100644 --- a/TAO/tao/ChangeLog +++ b/TAO/tao/ChangeLog @@ -1,3 +1,9 @@ +Thu Feb 20 12:48:16 2003 Balachandran Natarajan + + * ace/Connector.cpp: Added a const to regulate the size of the map + that is being used inside this class. A size of 1024 seems too + excessive for runtime memory. + Thu Feb 20 12:29:17 2003 Balachandran Natarajan * tao/Profile.h: diff --git a/ace/Connector.cpp b/ace/Connector.cpp index 511db1e662b..8de2818940a 100644 --- a/ace/Connector.cpp +++ b/ace/Connector.cpp @@ -10,6 +10,10 @@ # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +// NOTE: This will anyway be removed once the new policies for the +// reactor are merged in. +static const size_t ACE_CONNECTOR_HANDLER_MAP_SIZE = 16; + ACE_RCSID(ace, Connector, "$Id$") ACE_ALLOC_HOOK_DEFINE(ACE_Connector) @@ -142,6 +146,11 @@ ACE_Connector::open (ACE_Reactor *r, int flag template ACE_Connector::ACE_Connector (ACE_Reactor *r, int flags) + : handler_map_ (ACE_CONNECTOR_HANDLER_MAP_SIZE) + , connector_ () + , closing_ (0) + , flags_ (0) + , mutex_ () { ACE_TRACE ("ACE_Connector::ACE_Connector"); (void) this->open (r, flags); -- cgit v1.2.1