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

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

Issue 284843002: Fix build error with tcmalloc for android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | 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) 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
99 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 | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698