Bug 1013078 (part 2) - Remove some dead code in tools/jprof/stub/libmalloc.h. r=dbaron.

--HG--
extra : rebase_source : 6d94aa82432e255684dacefb3e39891cb1bdc208
This commit is contained in:
Nicholas Nethercote 2014-05-20 18:05:17 -07:00
parent 03023e2bf9
commit a0bec3a4ef

View File

@ -31,9 +31,6 @@ struct malloc_log_entry {
char* pcs[MAX_STACK_CRAWL];
};
// type's
#define malloc_log_stack 7
// Format of a malloc map entry; after this struct is nameLen+1 bytes of
// name data.
struct malloc_map_entry {
@ -41,32 +38,6 @@ struct malloc_map_entry {
u_long address; // base address
};
// A method that can be called if you want to programmatically control
// the malloc logging. Note that you must link with the library to do
// this (or use dlsym after dynamically loading the library...)
extern u_long SetMallocFlags(u_long flags);
// The environment variable LIBMALLOC_LOG should be set to an integer
// value whose meaning is as follows:
// Enable logging
#define LIBMALLOC_LOG 0x1
// Don't free memory when set
#define LIBMALLOC_NOFREE 0x2
// Check heap for corruption after every malloc/free/realloc
#define LIBMALLOC_CHECK 0x4
// Log reference count calls (addref/release)
#define LIBMALLOC_LOG_RC 0x8
// Log a stack trace
#define LIBMALLOC_LOG_TRACE 0x10
void __log_addref(void* p, int oldrc, int newrc);
void __log_release(void* p, int oldrc, int newrc);
#ifdef __cplusplus
} /* end of extern "C" */
#endif