Interpretation of bit patters in arena_chunk_map_bits_s

Jason Evans jasone at canonware.com
Tue Mar 8 13:09:46 PST 2016


On Mar 8, 2016, at 11:33 AM, Yasaswini G <yasaswinig7 at gmail.com> wrote:
> Hi,
> 
> What does the three patterns signify under each one of the allocation type (unallocated(dirty/clean), small, large)  in "arena_chunk_map_bits_s"
> 
> I understand the allocation types (unallocated, small, large),  but I am not sure why there are three different patters under each allocation type.
> 
> For example under Unallocated (clean), we have following bit patterns: 
>      Unallocated (clean):
>      *     ssssssss ssssssss sss+++++ +++dum-a         - pattern1

The above corresponds to the first page within a run.

>      *     xxxxxxxx xxxxxxxx xxxxxxxx xxx-Uxxx             - pattern2

The above corresponds to an interior page within a run.

>      *     ssssssss ssssssss sss+++++ +++dUm-a         - pattern3

The above corresponds to the last page within a run.

Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jemalloc.net/mailman/jemalloc-discuss/attachments/20160308/36057860/attachment.html>


More information about the jemalloc-discuss mailing list