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

Side by Side Diff: third_party/tcmalloc/chromium/src/libc_override_gcc_and_weak.h

Issue 18314006: Enable DMP for system Chromium WebView on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for a review Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, Google Inc. 1 // Copyright (c) 2011, 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 void* valloc(size_t size) __THROW ALIAS(tc_valloc); 87 void* valloc(size_t size) __THROW ALIAS(tc_valloc);
88 void* pvalloc(size_t size) __THROW ALIAS(tc_pvalloc); 88 void* pvalloc(size_t size) __THROW ALIAS(tc_pvalloc);
89 int posix_memalign(void** r, size_t a, size_t s) __THROW 89 int posix_memalign(void** r, size_t a, size_t s) __THROW
90 ALIAS(tc_posix_memalign); 90 ALIAS(tc_posix_memalign);
91 void malloc_stats(void) __THROW ALIAS(tc_malloc_stats); 91 void malloc_stats(void) __THROW ALIAS(tc_malloc_stats);
92 int mallopt(int cmd, int value) __THROW ALIAS(tc_mallopt); 92 int mallopt(int cmd, int value) __THROW ALIAS(tc_mallopt);
93 #ifdef HAVE_STRUCT_MALLINFO 93 #ifdef HAVE_STRUCT_MALLINFO
94 struct mallinfo mallinfo(void) __THROW ALIAS(tc_mallinfo); 94 struct mallinfo mallinfo(void) __THROW ALIAS(tc_mallinfo);
95 #endif 95 #endif
96 size_t malloc_size(void* p) __THROW ALIAS(tc_malloc_size); 96 size_t malloc_size(void* p) __THROW ALIAS(tc_malloc_size);
97 #if defined(__ANDROID__)
98 size_t malloc_usable_size(const void* p) __THROW ALIAS(tc_malloc_size);
bulach 2013/07/11 15:10:11 does this work with the NDK, say content shell?
mnaganov (inactive) 2013/07/11 16:44:56 Surely, it doesn't. This function is cursed to hav
99 #else
97 size_t malloc_usable_size(void* p) __THROW ALIAS(tc_malloc_size); 100 size_t malloc_usable_size(void* p) __THROW ALIAS(tc_malloc_size);
101 #endif
98 } // extern "C" 102 } // extern "C"
99 103
100 #undef ALIAS 104 #undef ALIAS
101 105
102 // No need to do anything at tcmalloc-registration time: we do it all 106 // No need to do anything at tcmalloc-registration time: we do it all
103 // via overriding weak symbols (at link time). 107 // via overriding weak symbols (at link time).
104 static void ReplaceSystemAlloc() { } 108 static void ReplaceSystemAlloc() { }
105 109
106 #endif // TCMALLOC_LIBC_OVERRIDE_GCC_AND_WEAK_INL_H_ 110 #endif // TCMALLOC_LIBC_OVERRIDE_GCC_AND_WEAK_INL_H_
OLDNEW
« no previous file with comments | « third_party/tcmalloc/chromium/src/heap-profiler.cc ('k') | third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698