]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: [_Hashtable] Optimize destructor
authorFrançois Dumont <fdumont@gcc.gnu.org>
Thu, 25 Apr 2024 16:45:59 +0000 (18:45 +0200)
committerFrançois Dumont <frs.dumont@gmail.com>
Mon, 10 Jun 2024 16:57:32 +0000 (18:57 +0200)
commit6ef888177251653fd89b9f127d707bdad04eecbe
tree1cfd5156917bfeecb7ac89eedf99acf2e27e19c9
parentc3d1153bc0a2b820e3c373ecf19a5a127703f854
libstdc++: [_Hashtable] Optimize destructor

Hashtable destructor do not need to call clear() method that in addition to
destroying all nodes also reset all buckets to nullptr.

libstdc++-v3/ChangeLog:

* include/bits/hashtable.h (~_Hashtable()): Replace clear call with
a _M_deallocate_nodes call.
libstdc++-v3/include/bits/hashtable.h