[Bug libstdc++/41267] vector<>::resize() from an empty vector calls memmove for 0 bytes (twice), wasting a lot of cpu time in a production PowerDNS

paolo at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Sep 6 15:42:00 GMT 2009



------- Comment #2 from paolo at gcc dot gnu dot org  2009-09-06 15:41 -------
Subject: Bug 41267

Author: paolo
Date: Sun Sep  6 15:41:38 2009
New Revision: 151459

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151459
Log:
2009-09-06  Paolo Carlini  <paolo.carlini@oracle.com>

        PR libstdc++/41267
        * include/bits/stl_algobase.h (__copy_move::__copy_m,
        __copy_move_backward::__copy_move_b): Don't call __builtin_memmove
        with a null third argument.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_algobase.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41267



More information about the Gcc-bugs mailing list