|Summary:||Fix small design issues with PageAllocation, split out PageReservation.|
|Product:||WebKit||Reporter:||Gavin Barraclough <barraclough>|
|Severity:||Normal||CC:||atwilson, s.mathur, webkit.review.bot|
|Version:||528+ (Nightly build)|
|OS:||OS X 10.5|
|Bug Depends on:|
Description Gavin Barraclough 2010-08-04 15:28:32 PDT
The PageAllocation class has a number of issues. * Changes in bug #43269 accidentally switched SYMBIAN over to use malloc/free to allocate blocks of memory for the GC heap, instead of allocating RChunks. Revert this change in behaviour. * In order for PageAllocation to work correctly on WinCE we should be decommitting memory before deallocating. In order to simplify understanding the expected state at deallocate, split behaviour out into PageAllocation and PageReservation classes. Require that all memory be decommitted before calling deallocate on a PageReservation, add asserts to enforce this. * add many missing asserts. * inline more functions. * remove ability to create sub-PageAllocations from an existing PageAllocations object – this presented an interface that would allow sub regions to be deallocated, which would not have provided expected behaviour. * remove writable/executable arguments to commit, this value can be cached at the point the memory is reserved. * remove writable/executable arguments to allocateAligned, protection other than RW is not supported. * add missing checks for overflow & failed allocation to mmap path through allocateAligned.
Comment 2 WebKit Review Bot 2010-08-04 15:43:26 PDT
Comment 4 Andrew Wilson 2010-08-04 17:44:57 PDT
Comment 5 Adam Barth 2010-08-10 23:00:46 PDT
Comment on attachment 63504 [details] The patch Clearing sam's r+. Looks like we'll need a new patch here.
Comment 6 Siddharth Mathur 2010-12-15 08:22:46 PST
Gavin, Could you please let us know if you intend to revisit this patch (the Symbian change specifically), or should we do it as part of Bug 51108? Either way is fine. Thanks!
Comment 7 Gavin Barraclough 2010-12-17 14:09:21 PST
Hi Siddharth, I'm afraid I'm not going to have a chance to look at this again in the near future, I think Geoff has made some major changes to PageAllocation lately, so I doubt this patch can be merged up easily, I expect any fix will need a fresh implementation on ToT. cheers, G.