OLD | NEW |
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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 312 |
313 // Hooks for MallocHook | 313 // Hooks for MallocHook |
314 static void MmapHook(const void* result, | 314 static void MmapHook(const void* result, |
315 const void* start, size_t size, | 315 const void* start, size_t size, |
316 int prot, int flags, | 316 int prot, int flags, |
317 int fd, off_t offset); | 317 int fd, off_t offset); |
318 static void MunmapHook(const void* ptr, size_t size); | 318 static void MunmapHook(const void* ptr, size_t size); |
319 static void MremapHook(const void* result, const void* old_addr, | 319 static void MremapHook(const void* result, const void* old_addr, |
320 size_t old_size, size_t new_size, int flags, | 320 size_t old_size, size_t new_size, int flags, |
321 const void* new_addr); | 321 const void* new_addr); |
322 static void SbrkHook(const void* result, ptrdiff_t increment); | 322 static void SbrkHook(const void* result, std::ptrdiff_t increment); |
323 | 323 |
324 // Log all memory regions; Useful for debugging only. | 324 // Log all memory regions; Useful for debugging only. |
325 // Assumes Lock() is held | 325 // Assumes Lock() is held |
326 static void LogAllLocked(); | 326 static void LogAllLocked(); |
327 | 327 |
328 DISALLOW_COPY_AND_ASSIGN(MemoryRegionMap); | 328 DISALLOW_COPY_AND_ASSIGN(MemoryRegionMap); |
329 }; | 329 }; |
330 | 330 |
331 #endif // BASE_MEMORY_REGION_MAP_H_ | 331 #endif // BASE_MEMORY_REGION_MAP_H_ |
OLD | NEW |