|Summary:||[Qt][WK2] SharedMemory uses two pages for one page request|
|Product:||WebKit||Reporter:||Balazs Kelemen <kbalazs>|
|Version:||528+ (Nightly build)|
Description Balazs Kelemen 2010-10-29 01:39:34 PDT
Our shared memory implementation tries to minimize the number of allocations trough recycling unused mappings. This technique needs an extra word (word instead of a byte for aligning) in each mapping that tracks that the memory is used or it has been released. The problem is that we ending up in allocating an extra page if the client rounds up it's request to page size. This is the case of the VisitedLinkTable.
Comment 1 Balazs Kelemen 2010-10-29 01:50:30 PDT
Oh.... My patch asserts. The essence of that was to hack around SharedMemory::systemPageSize to get back getpagesize() - extra_space but there is an assert at VisitedLinkTable.cpp:60 - ASSERT(isPowerOf2(m_tableSize)); and this fails with the patch. Grrrrrrr!