RESOLVED FIXED Bug 51359
Added PageAllocationAligned, a cross-platform abstraction for memory allocations with arbitrary alignment requirements
https://bugs.webkit.org/show_bug.cgi?id=51359
Summary Added PageAllocationAligned, a cross-platform abstraction for memory allocati...
Geoffrey Garen
Reported 2010-12-20 15:55:14 PST
Added PageAllocationAligned, a cross-platform abstraction for memory allocations with arbitrary alignment requirements
Attachments
Patch (42.43 KB, patch)
2010-12-20 16:50 PST, Geoffrey Garen
no flags
Patch (42.45 KB, patch)
2010-12-20 18:56 PST, Geoffrey Garen
commit-queue: commit-queue-
Cleaned up, fixed build errors, cleaned up WINCE extra decommit, re-added check for successful release. (52.63 KB, patch)
2010-12-21 15:20 PST, Gavin Barraclough
oliver: review+
Geoffrey Garen
Comment 1 2010-12-20 16:50:52 PST
Geoffrey Garen
Comment 2 2010-12-20 16:52:40 PST
Gavin Barraclough
Comment 3 2010-12-20 17:06:27 PST
Comment on attachment 77055 [details] Patch might be nice to remove m_trueBase on DARWIN, it's not really needed. your call, r+
Geoffrey Garen
Comment 4 2010-12-20 18:43:46 PST
I sat down to remove m_trueBase on DARWIN and realized that it would be more involved than just an #ifdef around the data member -- to satisfy unused parameter warnings, you'd either need to give DARWIN its own constructor, or you'd need to #ifdef out a portion of the shared constructor and #ifdef in an UNUSED_PARAM warning. My gut says to stick with the simpler solution, since we're only talking about 4-8 bytes in an allocation that's >= 4K.
Geoffrey Garen
Comment 5 2010-12-20 18:56:18 PST
Geoffrey Garen
Comment 6 2010-12-20 18:58:41 PST
Comment on attachment 77063 [details] Patch Here's an updated version of the patch with project file conflicts resolved. Unfortunately, I'm not going to have time to land this before I leave for vacation. I'd sure appreciate it if a WebKit committer (human or robot!) could land this for me.
WebKit Commit Bot
Comment 7 2010-12-20 19:00:00 PST
Comment on attachment 77063 [details] Patch Rejecting attachment 77063 [details] from commit-queue. Failed to run "['./Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=cr-jail-3', 'apply-attachment', '--non-interactive', 77063]" exit_code: 2 Last 500 characters of output: ned.cpp patching file JavaScriptCore/wtf/PageAllocationAligned.h patching file JavaScriptCore/wtf/Platform.h patching file JavaScriptCore/wtf/wtf.pri patching file JavaScriptGlue/ChangeLog patching file JavaScriptGlue/ForwardingHeaders/wtf/PageAllocationAligned.h patching file WebCore/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file WebCore/ForwardingHeaders/wtf/PageAllocationAligned.h Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force']" exit_code: 1 Full output: http://queues.webkit.org/results/7248073
WebKit Review Bot
Comment 8 2010-12-20 19:13:19 PST
Early Warning System Bot
Comment 9 2010-12-20 19:21:37 PST
WebKit Review Bot
Comment 10 2010-12-20 20:38:53 PST
Build Bot
Comment 11 2010-12-20 21:43:25 PST
Gavin Barraclough
Comment 12 2010-12-21 15:20:18 PST
Created attachment 77157 [details] Cleaned up, fixed build errors, cleaned up WINCE extra decommit, re-added check for successful release.
Oliver Hunt
Comment 13 2010-12-21 15:36:26 PST
Comment on attachment 77157 [details] Cleaned up, fixed build errors, cleaned up WINCE extra decommit, re-added check for successful release. r=me
Gavin Barraclough
Comment 14 2010-12-21 15:55:21 PST
Oh, also, that patch fixed a bug in Geoff's last revision – deallocate() on non-DARWIN platforms was releasing 'size' bytes of memory, but be needed to release the amount we had reserved. Fixed in r74431.
WebKit Review Bot
Comment 15 2010-12-21 16:00:41 PST
http://trac.webkit.org/changeset/74431 might have broken SnowLeopard Intel Release (Build)
Note You need to log in before you can comment on or make changes to this bug.