From 06d330f580a5b40a0f8e8bac11f143659b6ff93c Mon Sep 17 00:00:00 2001
From: Sami Kama <sami@cern.ch>
Date: Tue, 14 Mar 2017 09:50:06 +0100
Subject: [PATCH] Preallocate many slots in coredumpsvc

---
 Control/AthenaServices/src/CoreDumpSvc.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Control/AthenaServices/src/CoreDumpSvc.cxx b/Control/AthenaServices/src/CoreDumpSvc.cxx
index c6126925b7c..29edf73e82e 100644
--- a/Control/AthenaServices/src/CoreDumpSvc.cxx
+++ b/Control/AthenaServices/src/CoreDumpSvc.cxx
@@ -160,8 +160,8 @@ CoreDumpSvc::CoreDumpSvc( const std::string& name, ISvcLocator* pSvcLocator ) :
   m_signals.setValue(sigs);
   // Allocate for 200 slots. This should be increased if we foresee more than 200 slots.
   // Memory overhead is negligable compared to dynamically allocate the entries
-  m_usrCoreDumps.reserve(200);
-  m_sysCoreDumps.reserve(200);
+  m_usrCoreDumps.resize(200);
+  m_sysCoreDumps.resize(200);
   
 }
 
-- 
GitLab