On Jul 17, 2014, at 8:54 AM, shireesh bhat <[email protected]> wrote: > I want to extract the starting address of the arena_run_t from the mapping > information present in arena_chunk_t for each page. > Suppose I know the starting address of one of the chunks and have retrieved > the mapping information for a particular page from the 'map' structure inside > arena_chunk_t, is it possible for me to retrieve the address of arena_run_t > to which the page belongs?
As currently implemented, the arena_run_t data structure is embedded at offset 0 within the run itself, so as long as you know the page's offset from the beginning of the run (which is recorded in the chunk's page map), you can directly compute the (arena_run_t *). Jason
_______________________________________________ jemalloc-discuss mailing list [email protected] http://www.canonware.com/mailman/listinfo/jemalloc-discuss
