testsuite_allocator.h (tracker_allocator_counter:: allocate): Update allocation count only if allocation succeeded.
2011-09-02 François Dumont <fdumont@gcc.gnu.org> * testsuite/util/testsuite_allocator.h (tracker_allocator_counter:: allocate): Update allocation count only if allocation succeeded. From-SVN: r178486
This commit is contained in:
parent
d7da5cc85c
commit
e1f3ce0db1
|
@ -1,3 +1,8 @@
|
|||
2011-09-02 François Dumont <fdumont@gcc.gnu.org>
|
||||
|
||||
* testsuite/util/testsuite_allocator.h (tracker_allocator_counter::
|
||||
allocate): Update allocation count only if allocation succeeded.
|
||||
|
||||
2011-09-02 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* include/std/bitset: Trivial formatting fixes.
|
||||
|
|
|
@ -41,8 +41,9 @@ namespace __gnu_test
|
|||
static void*
|
||||
allocate(size_type blocksize)
|
||||
{
|
||||
void* p = ::operator new(blocksize);
|
||||
allocationCount_ += blocksize;
|
||||
return ::operator new(blocksize);
|
||||
return p;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue