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

Unified Diff: third_party/tcmalloc/chromium/src/malloc_hook.cc

Issue 9310021: [NOT TO COMMIT!] Merge Chromium-specific changes in tcmalloc thru. the original gperftools r136. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed some build inhibitor. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/tcmalloc/chromium/src/malloc_hook.cc
diff --git a/third_party/tcmalloc/chromium/src/malloc_hook.cc b/third_party/tcmalloc/chromium/src/malloc_hook.cc
index 12fd32725d0f94daacbd57bfd0fbb7bcaa43a686..f787d91a68e16eafff69972f4cd60052ec8d1c80 100644
--- a/third_party/tcmalloc/chromium/src/malloc_hook.cc
+++ b/third_party/tcmalloc/chromium/src/malloc_hook.cc
@@ -127,7 +127,7 @@ void InitialPreMMapHook(const void* start,
MallocHook::InvokePreMmapHook(start, size, protection, flags, fd, offset);
}
-void InitialPreSbrkHook(ptrdiff_t increment) {
+void InitialPreSbrkHook(std::ptrdiff_t increment) {
perftools_pthread_once(&once, &RemoveInitialHooksAndCallInitializers);
MallocHook::InvokePreSbrkHook(increment);
}
@@ -581,11 +581,11 @@ void MallocHook::InvokeMremapHookSlow(const void* result,
flags, new_addr));
}
-void MallocHook::InvokePreSbrkHookSlow(ptrdiff_t increment) {
+void MallocHook::InvokePreSbrkHookSlow(std::ptrdiff_t increment) {
INVOKE_HOOKS(PreSbrkHook, presbrk_hooks_, (increment));
}
-void MallocHook::InvokeSbrkHookSlow(const void* result, ptrdiff_t increment) {
+void MallocHook::InvokeSbrkHookSlow(const void* result, std::ptrdiff_t increment) {
INVOKE_HOOKS(SbrkHook, sbrk_hooks_, (result, increment));
}
« no previous file with comments | « third_party/tcmalloc/chromium/src/heap-profiler.cc ('k') | third_party/tcmalloc/chromium/src/malloc_hook-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698