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

Side by Side Diff: third_party/tcmalloc/chromium/src/debugallocation.cc

Issue 440027: Merge r77 from upstream tcmalloc to the local chromium branch.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2000, Google Inc. 1 // Copyright (c) 2000, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 symbolization_table[pc] = ""; 667 symbolization_table[pc] = "";
668 } 668 }
669 int sym_buffer_len = kSymbolSize * num_symbols; 669 int sym_buffer_len = kSymbolSize * num_symbols;
670 char *sym_buffer = new char[sym_buffer_len]; 670 char *sym_buffer = new char[sym_buffer_len];
671 if (FLAGS_symbolize_stacktrace) 671 if (FLAGS_symbolize_stacktrace)
672 Symbolize(sym_buffer, sym_buffer_len, &symbolization_table); 672 Symbolize(sym_buffer, sym_buffer_len, &symbolization_table);
673 for (int i = 0; i < num_symbols; i++) { 673 for (int i = 0; i < num_symbols; i++) {
674 uintptr_t pc = 674 uintptr_t pc =
675 reinterpret_cast<uintptr_t>(queue_entry.deleter_pcs[i]) - 1; 675 reinterpret_cast<uintptr_t>(queue_entry.deleter_pcs[i]) - 1;
676 TracePrintf(STDERR_FILENO, " @ %p %s\n", 676 TracePrintf(STDERR_FILENO, " @ %p %s\n",
677 reinterpret_cast<void*>(pc), symbolization_table[pc]); 677 pc, symbolization_table[pc]);
678 } 678 }
679 } else { 679 } else {
680 RAW_LOG(ERROR, 680 RAW_LOG(ERROR,
681 "Skipping the printing of the deleter's stack! Its stack was " 681 "Skipping the printing of the deleter's stack! Its stack was "
682 "not found; either the corruption occurred too early in " 682 "not found; either the corruption occurred too early in "
683 "execution to obtain a stack trace or --max_free_queue_size was " 683 "execution to obtain a stack trace or --max_free_queue_size was "
684 "set to 0."); 684 "set to 0.");
685 } 685 }
686 686
687 RAW_LOG(FATAL, 687 RAW_LOG(FATAL,
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
1382 void __libc_cfree(void* ptr) { cfree(ptr); } 1382 void __libc_cfree(void* ptr) { cfree(ptr); }
1383 void* __libc_memalign(size_t align, size_t s) { return memalign(align, s); } 1383 void* __libc_memalign(size_t align, size_t s) { return memalign(align, s); }
1384 void* __libc_valloc(size_t size) { return valloc(size); } 1384 void* __libc_valloc(size_t size) { return valloc(size); }
1385 void* __libc_pvalloc(size_t size) { return pvalloc(size); } 1385 void* __libc_pvalloc(size_t size) { return pvalloc(size); }
1386 int __posix_memalign(void** r, size_t a, size_t s) { 1386 int __posix_memalign(void** r, size_t a, size_t s) {
1387 return posix_memalign(r, a, s); 1387 return posix_memalign(r, a, s);
1388 } 1388 }
1389 } 1389 }
1390 1390
1391 #endif // #ifdef TCMALLOC_FOR_DEBUGALLOCATION 1391 #endif // #ifdef TCMALLOC_FOR_DEBUGALLOCATION
OLDNEW
« no previous file with comments | « third_party/tcmalloc/chromium/src/base/sysinfo.cc ('k') | third_party/tcmalloc/chromium/src/google/malloc_extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698