| 754 | } |
| 755 | |
| 756 | void GlobalMemoryAccountant::stop() |
| 757 | { |
| 758 | if (mallocAllocator_ == NULLPTR) |
| 759 | FAIL("GlobalMemoryAccount: Stop called without starting"); |
| 760 | |
| 761 | if (getCurrentMallocAllocator() != mallocAllocator_) |
| 762 | FAIL("GlobalMemoryAccountant: Malloc memory allocator has been changed while accounting for memory"); |
| 763 | |
| 764 | if (getCurrentNewAllocator() != newAllocator_) |
| 765 | FAIL("GlobalMemoryAccountant: New memory allocator has been changed while accounting for memory"); |
| 766 | |
| 767 | if (getCurrentNewArrayAllocator() != newArrayAllocator_) |
| 768 | FAIL("GlobalMemoryAccountant: New Array memory allocator has been changed while accounting for memory"); |
| 769 | |
| 770 | restoreMemoryAllocators(); |
| 771 | } |
| 772 | |
| 773 | SimpleString GlobalMemoryAccountant::report() |
| 774 | { |
nothing calls this directly
no test coverage detected