summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2003-02-20 17:37:33 +0000
committerbala <balanatarajan@users.noreply.github.com>2003-02-20 17:37:33 +0000
commitf98fb793540a8adb44ab90f076e67218fc346a0a (patch)
tree9b1d9b639e55ee251540b9076905cce53367db77
parentf535851adc99039505fbdb5c2daea10a647eb954 (diff)
downloadATCD-post_132_phase_1.tar.gz
ChangeLogTag: Wed Feb 12 12:40:21 2003 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>post_132_phase_1
-rw-r--r--TAO/tao/ChangeLog6
-rw-r--r--ace/Connector.cpp9
2 files changed, 15 insertions, 0 deletions
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 <bala@isis-server.isis.vanderbilt.edu>
+
+ * 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 <bala@isis-server.isis.vanderbilt.edu>
* 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<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::open (ACE_Reactor *r, int flag
template <class SVC_HANDLER, ACE_PEER_CONNECTOR_1>
ACE_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::ACE_Connector (ACE_Reactor *r, int flags)
+ : handler_map_ (ACE_CONNECTOR_HANDLER_MAP_SIZE)
+ , connector_ ()
+ , closing_ (0)
+ , flags_ (0)
+ , mutex_ ()
{
ACE_TRACE ("ACE_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::ACE_Connector");
(void) this->open (r, flags);