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

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

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, 10 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) 2006, Google Inc. 1 /* Copyright (c) 2006, 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 321
322 // Hooks for MallocHook 322 // Hooks for MallocHook
323 static void MmapHook(const void* result, 323 static void MmapHook(const void* result,
324 const void* start, size_t size, 324 const void* start, size_t size,
325 int prot, int flags, 325 int prot, int flags,
326 int fd, off_t offset); 326 int fd, off_t offset);
327 static void MunmapHook(const void* ptr, size_t size); 327 static void MunmapHook(const void* ptr, size_t size);
328 static void MremapHook(const void* result, const void* old_addr, 328 static void MremapHook(const void* result, const void* old_addr,
329 size_t old_size, size_t new_size, int flags, 329 size_t old_size, size_t new_size, int flags,
330 const void* new_addr); 330 const void* new_addr);
331 static void SbrkHook(const void* result, ptrdiff_t increment); 331 static void SbrkHook(const void* result, std::ptrdiff_t increment);
332 332
333 // Log all memory regions; Useful for debugging only. 333 // Log all memory regions; Useful for debugging only.
334 // Assumes Lock() is held 334 // Assumes Lock() is held
335 static void LogAllLocked(); 335 static void LogAllLocked();
336 336
337 DISALLOW_COPY_AND_ASSIGN(MemoryRegionMap); 337 DISALLOW_COPY_AND_ASSIGN(MemoryRegionMap);
338 }; 338 };
339 339
340 #endif // BASE_MEMORY_REGION_MAP_H_ 340 #endif // BASE_MEMORY_REGION_MAP_H_
OLDNEW
« no previous file with comments | « third_party/tcmalloc/chromium/src/malloc_hook-inl.h ('k') | third_party/tcmalloc/chromium/src/memory_region_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698