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

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: Do not indent preprocessor directives 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__) && defined(ANDROID_NON_SDK_BUILD)
98 // In Android tree this function is defined differently than in the NDK.
99 size_t malloc_usable_size(const void* p) __THROW ALIAS(tc_malloc_size);
100 #else
97 size_t malloc_usable_size(void* p) __THROW ALIAS(tc_malloc_size); 101 size_t malloc_usable_size(void* p) __THROW ALIAS(tc_malloc_size);
102 #endif
98 } // extern "C" 103 } // extern "C"
99 104
100 #undef ALIAS 105 #undef ALIAS
101 106
102 // No need to do anything at tcmalloc-registration time: we do it all 107 // No need to do anything at tcmalloc-registration time: we do it all
103 // via overriding weak symbols (at link time). 108 // via overriding weak symbols (at link time).
104 static void ReplaceSystemAlloc() { } 109 static void ReplaceSystemAlloc() { }
105 110
106 #endif // TCMALLOC_LIBC_OVERRIDE_GCC_AND_WEAK_INL_H_ 111 #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