This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/61667] setting max_load_factor of unordered_map cause buckets shrink


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61667

--- Comment #3 from FranÃois Dumont <fdumont at gcc dot gnu.org> ---
Author: fdumont
Date: Sat Aug  9 08:00:59 2014
New Revision: 213775

URL: https://gcc.gnu.org/viewcvs?rev=213775&root=gcc&view=rev
Log:
2014-08-09  FranÃois Dumont  <fdumont@gcc.gnu.org>

    PR libstdc++/61667
    * include/bits/hashtable.h (_Hashtable<>::__rehash_policy): Use
    _M_need_rehash to initialize the rehash policy and check if a rehash is
    needed.
    * testsuite/23_containers/unordered_map/modifiers/61667.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/23_containers/unordered_map/modifiers/61667.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/hashtable.h

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]