File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 66#include < vector>
77
88// Allocation tracker, to catch memory leaks and double delete
9- constexpr std::size_t max_allocations = 20 '000 ;
9+ constexpr std::size_t max_allocations = 200 '000 ;
1010void * allocations[max_allocations];
1111void * allocations_array[max_allocations];
1212std::size_t num_allocations = 0u ;
1313std::size_t double_delete = 0u ;
1414bool memory_tracking = false ;
1515bool force_allocation_failure = false ;
1616
17- #if defined(OUP_PLATFORM_OSX)
18- // Getting weird errors on MacOS when overriding operator new and delete,
19- // so disable the memory leak checking for this platform.
20- # define CHECK_MEMORY_LEAKS 0
21- #else
22- # define CHECK_MEMORY_LEAKS 1
23- #endif
17+ #define CHECK_MEMORY_LEAKS 1
2418
2519#if defined(CHECK_MEMORY_LEAKS) && CHECK_MEMORY_LEAKS
2620void * allocate (std::size_t size, bool array) {
You can’t perform that action at this time.
0 commit comments