testsuite allocator patch

François Dumont frs.dumont@gmail.com
Thu Sep 1 20:20:00 GMT 2011


Hi

     A small patch for a small issue detected while playing with 
tracker_allocator. I considered that allocation count should represent 
the number of allocated bytes and not the number of requested bytes.

2011-09-01  François Dumont <frs.dumont@gmail.com>

     * testsuite/util/testsuite_allocator.h 
(tracker_allocator_counter::allocate): Update
     allocation count only if allocation succeeded.

Tested under linux x86_64.

François
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testsuite_allocator.patch
Type: text/x-patch
Size: 475 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20110901/9adcd057/attachment.bin>


More information about the Libstdc++ mailing list