| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "call_stack.h" | 5 #include "call_stack.h" |
| 6 #include <shlwapi.h> | 6 #include <shlwapi.h> |
| 7 #include <tlhelp32.h> | 7 #include <tlhelp32.h> |
| 8 | 8 |
| 9 #include "memory_hook.h" | 9 #include "memory_hook.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 return MemoryHook::Alloc(size); | 366 return MemoryHook::Alloc(size); |
| 367 } | 367 } |
| 368 | 368 |
| 369 void AllocationStack::operator delete(void* ptr) { | 369 void AllocationStack::operator delete(void* ptr) { |
| 370 AllocationStack *stack = reinterpret_cast<AllocationStack*>(ptr); | 370 AllocationStack *stack = reinterpret_cast<AllocationStack*>(ptr); |
| 371 AutoLock lock(freelist_lock_); | 371 AutoLock lock(freelist_lock_); |
| 372 DCHECK(stack->next_ == NULL); | 372 DCHECK(stack->next_ == NULL); |
| 373 stack->next_ = freelist_; | 373 stack->next_ = freelist_; |
| 374 freelist_ = stack; | 374 freelist_ = stack; |
| 375 } | 375 } |
| 376 | |
| OLD | NEW |