diff options
| author | Eric Holk <eholk@mozilla.com> | 2011-08-16 10:28:09 -0700 |
|---|---|---|
| committer | Eric Holk <eholk@mozilla.com> | 2011-08-16 10:28:09 -0700 |
| commit | 76aab80e3988caf71b7d6299e5a7ebb06cf2bbbb (patch) | |
| tree | 017de111ddae721ecc683dc460430d39c3c2626a /src | |
| parent | 88a47020cf13e0884a83343c1b7cb3c0312f48a0 (diff) | |
| download | rust-76aab80e3988caf71b7d6299e5a7ebb06cf2bbbb.tar.gz rust-76aab80e3988caf71b7d6299e5a7ebb06cf2bbbb.zip | |
Disabling TRACK_ALLOCATIONS
Diffstat (limited to 'src')
| -rw-r--r-- | src/rt/memory_region.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/memory_region.cpp b/src/rt/memory_region.cpp index d9755c55888..c9c7c72d9c7 100644 --- a/src/rt/memory_region.cpp +++ b/src/rt/memory_region.cpp @@ -4,7 +4,7 @@ // NB: please do not commit code with this uncommented. It's // hugely expensive and should only be used as a last resort. // -#define TRACK_ALLOCATIONS +// #define TRACK_ALLOCATIONS #define MAGIC 0xbadc0ffe @@ -114,7 +114,7 @@ memory_region::~memory_region() { } #ifdef TRACK_ALLOCATIONS if (_detailed_leaks) { - unsigned int leak_count = 0; + int leak_count = 0; for (size_t i = 0; i < _allocation_list.size(); i++) { if (_allocation_list[i] != NULL) { alloc_header *header = (alloc_header*)_allocation_list[i]; |
