From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9601 invoked by alias); 3 Sep 2005 01:16:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 9552 invoked by uid 48); 3 Sep 2005 01:16:08 -0000 Date: Sat, 03 Sep 2005 01:16:00 -0000 Message-ID: <20050903011608.9547.qmail@sourceware.org> From: "pcarlini at suse dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050901014342.23667.jsm28@gcc.gnu.org> References: <20050901014342.23667.jsm28@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/23667] [4.0/4.1 Regression] tr1/6_containers/unordered/hashtable/23465.cc execution test times out X-Bugzilla-Reason: CC X-SW-Source: 2005-09/txt/msg00321.txt.bz2 List-Id: ------- Additional Comments From pcarlini at suse dot de 2005-09-03 01:16 ------- Ok, I can confirm that Andrew's guess, about the involvment of Mark's patch: what is happening is that, inside hashtable<>::m_rehash, X<0>::n_primes == 0 whereas, at line 383 of tr1/hashtable we find: template struct X { static const int n_primes = 256; static const unsigned long primes[n_primes + 1]; }; therefore, n_primes is supposed to be 256. Then everything goes nuts, in short, at every insertion a very costly rehashing happens. Mark, can you please have a look at this issue? -- What |Removed |Added ---------------------------------------------------------------------------- CC| |mmitchel at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23667