summaryrefslogtreecommitdiff
path: root/src/google/malloc_hook.h
diff options
context:
space:
mode:
authorcsilvers <csilvers@6b5cf1ce-ec42-a296-1ba9-69fdba395a50>2010-01-14 16:26:05 +0000
committercsilvers <csilvers@6b5cf1ce-ec42-a296-1ba9-69fdba395a50>2010-01-14 16:26:05 +0000
commit63b8d63beb7d771713774f9a5d57381cbd29bf19 (patch)
treed09417a7fd0710c1e728216656b9e0f002452adc /src/google/malloc_hook.h
parenteeeacd5ec4fa36256091f45e5b3af81cee2a4d86 (diff)
downloadgperftools-63b8d63beb7d771713774f9a5d57381cbd29bf19.tar.gz
* PORTING: Revised patch_functions to avoid deadlock (csilvers, andrey)
* PORTING: Revised patch_functions to speed up .dll loads (csilvers) * PORTING: Build and run sampling_test for windows (csilvers) * Correctly init tc structs even when libc isn't patched (csilvers) * Make low-level allocs async-signal-safe (saito) git-svn-id: http://gperftools.googlecode.com/svn/trunk@83 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
Diffstat (limited to 'src/google/malloc_hook.h')
-rw-r--r--src/google/malloc_hook.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/google/malloc_hook.h b/src/google/malloc_hook.h
index f2713e9..48d92da 100644
--- a/src/google/malloc_hook.h
+++ b/src/google/malloc_hook.h
@@ -191,6 +191,12 @@ class PERFTOOLS_DLL_DECL MallocHook {
int skip_count) {
return MallocHook_GetCallerStackTrace(result, max_depth, skip_count);
}
+
+ // Unhooked versions of mmap() and munmap(). These should be used
+ // only by experts, since they bypass heapchecking, etc.
+ static void* UnhookedMMap(void *start, size_t length, int prot, int flags,
+ int fd, off_t offset);
+ static int UnhookedMUnmap(void *start, size_t length);
};
#endif /* _MALLOC_HOOK_H_ */