Jonathan Thornburg wrote: >> when malloc gets a request with a size equal to the size of a pointer, we >> can allocate a whole page, and return a pointer 4 bytes from the end. >> the >> four bytes allocated are useable, but don't touch the fifth or any later >> ones. (8 bytes on 64bit archs). > > Is the plan to make this the default behavior, or "just" to add it as > another option selectable by /etc/malloc.conf?
This would make all 4/8-byte mallocs take up one page(4k) each if I understand this correctly. That's fine for debugging, but probably too expensive for normal usage. -- Janne Johansson Sektionen fvr IT & Media, Stockholms Universitet Frescati Hagvdg 10 106 91 STOCKHOLM http://www.it.su.se