summaryrefslogtreecommitdiff
path: root/base/allocator/allocator_shim_default_dispatch_to_glibc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/allocator/allocator_shim_default_dispatch_to_glibc.cc')
-rw-r--r--base/allocator/allocator_shim_default_dispatch_to_glibc.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/base/allocator/allocator_shim_default_dispatch_to_glibc.cc b/base/allocator/allocator_shim_default_dispatch_to_glibc.cc
index 6f386d4cc0..8574da3eb3 100644
--- a/base/allocator/allocator_shim_default_dispatch_to_glibc.cc
+++ b/base/allocator/allocator_shim_default_dispatch_to_glibc.cc
@@ -6,8 +6,6 @@
#include <malloc.h>
-#include "base/compiler_specific.h"
-
// This translation unit defines a default dispatch for the allocator shim which
// routes allocations to libc functions.
// The code here is strongly inspired from tcmalloc's libc_override_glibc.h.
@@ -25,7 +23,6 @@ namespace {
using base::allocator::AllocatorDispatch;
void* GlibcMalloc(const AllocatorDispatch*, size_t size, void* context) {
- ALLOW_UNUSED_PARAM(context);
return __libc_malloc(size);
}
@@ -33,7 +30,6 @@ void* GlibcCalloc(const AllocatorDispatch*,
size_t n,
size_t size,
void* context) {
- ALLOW_UNUSED_PARAM(context);
return __libc_calloc(n, size);
}
@@ -41,7 +37,6 @@ void* GlibcRealloc(const AllocatorDispatch*,
void* address,
size_t size,
void* context) {
- ALLOW_UNUSED_PARAM(context);
return __libc_realloc(address, size);
}
@@ -49,12 +44,10 @@ void* GlibcMemalign(const AllocatorDispatch*,
size_t alignment,
size_t size,
void* context) {
- ALLOW_UNUSED_PARAM(context);
return __libc_memalign(alignment, size);
}
void GlibcFree(const AllocatorDispatch*, void* address, void* context) {
- ALLOW_UNUSED_PARAM(context);
__libc_free(address);
}
@@ -63,7 +56,6 @@ size_t GlibcGetSizeEstimate(const AllocatorDispatch*,
void* context) {
// TODO(siggi, primiano): malloc_usable_size may need redirection in the
// presence of interposing shims that divert allocations.
- ALLOW_UNUSED_PARAM(context);
return malloc_usable_size(address);
}