mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
df85ef19a7
jemalloc_ptr_info takes an outparam, which makes it harder to use in a debugger: you'd need to find some memory to use as outparam and pass that in. So for convenience, we add a non-exported symbol for use in debuggers, which just returns a pointer to a static buffer for the result. lldb: (lldb) print *Debug::jemalloc_ptr_info($0) (jemalloc_ptr_info_t) $1 = (tag = TagLiveSmall, addr=0x000000011841dd80, size = 160) gdb: (gdb) print *Debug::jemalloc_ptr_info($0) $1 = {tag = TagLiveSmall, addr = 0x7f8e7ebd0dc0, size = 96} windbg: 0:040> .call Debug::jemalloc_ptr_info(0x6187880) Thread is set up for call, 'g' will execute. WARNING: This can have serious side-effects, including deadlocks and corruption of the debuggee. 0:040> g .call returns: struct jemalloc_ptr_info_t * 0x7501f3f4 +0x000 tag : 1 ( TagLiveSmall ) +0x004 addr : 0x06187880 Void +0x008 size : 0x20 --HG-- extra : rebase_source : 09aedd48aabee3e273a17000a61b1d09cdd619b9 |
||
---|---|---|
.. | ||
fallback.cpp | ||
malloc_decls.h | ||
moz.build | ||
mozjemalloc_types.h | ||
mozjemalloc.cpp | ||
mozjemalloc.h | ||
mozmemory_wrap.cpp | ||
mozmemory_wrap.h | ||
mozmemory.h | ||
rb.h | ||
replace_malloc_bridge.h | ||
replace_malloc.h | ||
zone.c |