MemoryServer::doGrow() always allocates at least PAGESIZE bytes,
even for sizes much lower than PAGESIZE, for example 1 byte. MemoryServer
should only allocate new pages when the top of the heap rises above
a PAGESIZE boundary.
Another possibility to solve this problem is to always allocate
new heap memory in terms of PAGESIZE, and let applications specify
how many extra pages to allocate instead of bytes.
Original issue reported on code.google.com by coenbijlsma on 7 Aug 2009 at 10:49
Original issue reported on code.google.com by
coenbijlsma
on 7 Aug 2009 at 10:49