RESOLVED DUPLICATE of bug 48520 48619
[Qt][WK2] SharedMemory uses two pages for one page request
https://bugs.webkit.org/show_bug.cgi?id=48619
Summary [Qt][WK2] SharedMemory uses two pages for one page request
Balazs Kelemen
Reported 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.
Attachments
Balazs Kelemen
Comment 1 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!
Balazs Kelemen
Comment 2 2010-11-02 02:06:55 PDT
*** This bug has been marked as a duplicate of bug 48520 ***
Note You need to log in before you can comment on or make changes to this bug.