gecko-dev/memory/build
Mike Hommey df85ef19a7 Bug 1300900 - Add a helper around jemalloc_ptr_info for debuggers. r=njn
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
2017-10-25 08:01:41 +09:00
..
fallback.cpp Bug 1402647 - Add a memalign implementation on platforms that don't have one. r=njn 2017-09-26 06:59:03 +09:00
malloc_decls.h Bug 1052573 - Add an API for allocation in separate arenas. r=njn 2017-09-22 07:22:38 +09:00
moz.build Bug 1411158 - Remove some warning exceptions in memory/build/moz.build. r=njn 2017-10-24 14:48:05 +09:00
mozjemalloc_types.h Bug 1052573 - Add an API for allocation in separate arenas. r=njn 2017-09-22 07:22:38 +09:00
mozjemalloc.cpp Bug 1300900 - Add a helper around jemalloc_ptr_info for debuggers. r=njn 2017-10-25 08:01:41 +09:00
mozjemalloc.h Bug 1052573 - Add an API for allocation in separate arenas. r=njn 2017-09-22 07:22:38 +09:00
mozmemory_wrap.cpp Bug 1400096 - Don't define the operator new/delete functions as mangled in mozmem_wrap.cpp. r=njn 2017-09-15 10:28:33 +09:00
mozmemory_wrap.h Bug 1052573 - Add an API for allocation in separate arenas. r=njn 2017-09-22 07:22:38 +09:00
mozmemory.h Bug 1052573 - Add an API for allocation in separate arenas. r=njn 2017-09-22 07:22:38 +09:00
rb.h Bug 1403660 - Do not use 'else' after 'break' in /memory/build/rb.h. r=njn 2017-09-28 08:01:00 -04:00
replace_malloc_bridge.h Bug 1401875 - Replace MALLOC_DECL_VOID with a clever use of templates. r=njn 2017-09-21 15:27:12 +09:00
replace_malloc.h Bug 1368932 - Handle missing replace_posix_memalign at the replace-malloc level. r=njn 2017-05-31 13:47:17 +09:00
zone.c Backed out changeset 0e349b74bfc6 (bug 1399921) for failure to thrive on Mac 2017-09-14 20:36:41 -07:00