Restore bookkeeping data structures across program runs
wong111 at llnl.gov
Thu May 26 15:57:48 PDT 2011
I noticed that when jemalloc initializes, book keeping data structures are stored to main memory. When I enable swap, any new allocations to book keeping data structures (for example, the red black tree) are in the swap area. I want to modify jemalloc so that I can restore the book keeping data structures from the swap file across program runs so that I can still call free(), etc. I’m currently trying to see if calling chunk_swap_enable before malloc_init_hard would do the trick, but this seems really hackish. Do you have a suggestion for a better approach? Any help would be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the jemalloc-discuss