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

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

Issue 1610153002: Allocator cleanup: move tcmalloc-specific calls to base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup_nonbase_tcmalloc_1
Patch Set: rebase Created 4 years, 11 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 | « third_party/tcmalloc/README.chromium ('k') | third_party/tcmalloc/chromium/src/tcmalloc.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) 2003, Google Inc. 1 /* Copyright (c) 2003, 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 extern "C" { 87 extern "C" {
88 #endif 88 #endif
89 // Returns a human-readable version string. If major, minor, 89 // Returns a human-readable version string. If major, minor,
90 // and/or patch are not NULL, they are set to the major version, 90 // and/or patch are not NULL, they are set to the major version,
91 // minor version, and patch-code (a string, usually ""). 91 // minor version, and patch-code (a string, usually "").
92 PERFTOOLS_DLL_DECL const char* tc_version(int* major, int* minor, 92 PERFTOOLS_DLL_DECL const char* tc_version(int* major, int* minor,
93 const char** patch) __THROW; 93 const char** patch) __THROW;
94 94
95 PERFTOOLS_DLL_DECL void* tc_malloc(size_t size) __THROW; 95 PERFTOOLS_DLL_DECL void* tc_malloc(size_t size) __THROW;
96 PERFTOOLS_DLL_DECL void* tc_malloc_skip_new_handler(size_t size);
Will Harris 2016/01/21 17:56:34 now this is a first class exported API from tcmall
Primiano Tucci (use gerrit) 2016/01/21 18:01:09 Right. So let me see if I'm getting it right. Are
96 PERFTOOLS_DLL_DECL void tc_free(void* ptr) __THROW; 97 PERFTOOLS_DLL_DECL void tc_free(void* ptr) __THROW;
97 PERFTOOLS_DLL_DECL void* tc_realloc(void* ptr, size_t size) __THROW; 98 PERFTOOLS_DLL_DECL void* tc_realloc(void* ptr, size_t size) __THROW;
98 PERFTOOLS_DLL_DECL void* tc_calloc(size_t nmemb, size_t size) __THROW; 99 PERFTOOLS_DLL_DECL void* tc_calloc(size_t nmemb, size_t size) __THROW;
99 PERFTOOLS_DLL_DECL void tc_cfree(void* ptr) __THROW; 100 PERFTOOLS_DLL_DECL void tc_cfree(void* ptr) __THROW;
100 101
101 PERFTOOLS_DLL_DECL void* tc_memalign(size_t __alignment, 102 PERFTOOLS_DLL_DECL void* tc_memalign(size_t __alignment,
102 size_t __size) __THROW; 103 size_t __size) __THROW;
103 PERFTOOLS_DLL_DECL int tc_posix_memalign(void** ptr, 104 PERFTOOLS_DLL_DECL int tc_posix_memalign(void** ptr,
104 size_t align, size_t size) __THROW; 105 size_t align, size_t size) __THROW;
105 PERFTOOLS_DLL_DECL void* tc_valloc(size_t __size) __THROW; 106 PERFTOOLS_DLL_DECL void* tc_valloc(size_t __size) __THROW;
(...skipping 23 matching lines...) Expand all
129 PERFTOOLS_DLL_DECL void* tc_newarray(size_t size); 130 PERFTOOLS_DLL_DECL void* tc_newarray(size_t size);
130 PERFTOOLS_DLL_DECL void* tc_newarray_nothrow(size_t size, 131 PERFTOOLS_DLL_DECL void* tc_newarray_nothrow(size_t size,
131 const std::nothrow_t&) __THROW; 132 const std::nothrow_t&) __THROW;
132 PERFTOOLS_DLL_DECL void tc_deletearray(void* p) __THROW; 133 PERFTOOLS_DLL_DECL void tc_deletearray(void* p) __THROW;
133 PERFTOOLS_DLL_DECL void tc_deletearray_nothrow(void* p, 134 PERFTOOLS_DLL_DECL void tc_deletearray_nothrow(void* p,
134 const std::nothrow_t&) __THROW; 135 const std::nothrow_t&) __THROW;
135 } 136 }
136 #endif 137 #endif
137 138
138 #endif // #ifndef TCMALLOC_TCMALLOC_H_ 139 #endif // #ifndef TCMALLOC_TCMALLOC_H_
OLDNEW
« no previous file with comments | « third_party/tcmalloc/README.chromium ('k') | third_party/tcmalloc/chromium/src/tcmalloc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698