Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: tools/memory_watcher/call_stack.cc

Issue 43082: NO CODE CHANGE (Closed)
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/memory_watcher/call_stack.h ('k') | tools/memory_watcher/dllmain.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « tools/memory_watcher/call_stack.h ('k') | tools/memory_watcher/dllmain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698