Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium

New issue 296 by [email protected]: AsanThreadLocalMallocStorage is unnecessarily large
http://code.google.com/p/address-sanitizer/issues/detail?id=296

AsanThreadLocalMallocStorage is declared as large flat buffer of uptrs. It's then used as a placeholder for SizeClassAllocatorLocalCache.

The problem is that sizeof(SizeClassAllocatorLocalCache) is only 100K (26K on 32-bit platforms) whereas sizeof(AsanThreadLocalMallocStorage) is 3M (1.5M on 32-bit platforms).

This causes problems in apps with many "lightweight" threads. E.g. my app has 250 threads with small 2M stacks so malloc storage with it's additional 1.5M per thread increase virtual memory consumption by 2x (from 500M to 1G).

I can cook a patch if all this sounds reasonable.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to