| 742 | } |
| 743 | |
| 744 | void GlobalMemoryAccountant::restoreMemoryAllocators() |
| 745 | { |
| 746 | if (getCurrentMallocAllocator() == mallocAllocator_) |
| 747 | setCurrentMallocAllocator(mallocAllocator_->originalAllocator()); |
| 748 | |
| 749 | if (getCurrentNewAllocator() == newAllocator_) |
| 750 | setCurrentNewAllocator(newAllocator_->originalAllocator()); |
| 751 | |
| 752 | if (getCurrentNewArrayAllocator() == newArrayAllocator_) |
| 753 | setCurrentNewArrayAllocator(newArrayAllocator_->originalAllocator()); |
| 754 | } |
| 755 | |
| 756 | void GlobalMemoryAccountant::stop() |
| 757 | { |
nothing calls this directly
no test coverage detected