[webkit-reviews] review granted: [Bug 50588] reserveAndCommit doesn't commit on MADVISE_FREE_REUSE systems : [Attachment 75734] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 6 14:35:49 PST 2010


Maciej Stachowiak <mjs at apple.com> has granted Geoffrey Garen
<ggaren at apple.com>'s request for review:
Bug 50588: reserveAndCommit doesn't commit on MADVISE_FREE_REUSE systems
https://bugs.webkit.org/show_bug.cgi?id=50588

Attachment 75734: Patch
https://bugs.webkit.org/attachment.cgi?id=75734&action=review

------- Additional Comments from Maciej Stachowiak <mjs at apple.com>
View in context: https://bugs.webkit.org/attachment.cgi?id=75734&action=review

Looks good. See two comments inline. Make sure to dro the DumpRenderTree
changes and it's r=me.

> JavaScriptCore/wtf/OSAllocatorPosix.cpp:43
> +    // MADV_FREE_REUSE reservations start out in the MADV_FREE_REUSE state,
but
> +    // the reserve() API promises something in the MADV_FREE_REUSABLE state.


This comment confuses me. I guess there is a relevant difference between
FREE_REUSE and FREE_REUSABLE which should be highlighted here, but it's not
explained. May want to tweak it.

> WebKitTools/DumpRenderTree/mac/DumpRenderTree.mm:-353
> -    // maps expected result <= JavaScript expression
> -    NSDictionary *expressions = [NSDictionary dictionaryWithObjectsAndKeys:
> -	   @"0", @"0", 
> -	   @"0", @"'0'", 
> -	   @"", @"",
> -	   @"", @"''", 
> -	   @"", @"new String()", 
> -	   @"", @"new String('0')", 
> -	   @"", @"throw 1", 
> -	   @"", @"{ }", 
> -	   @"", @"[ ]", 
> -	   @"", @"//", 
> -	   @"", @"a.b.c", 
> -	   @"", @"(function() { throw 'error'; })()", 
> -	   @"", @"null",
> -	   @"", @"undefined",
> -	   @"true", @"true",
> -	   @"false", @"false",
> -	   nil
> -    ];
> -
> -    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

I don't think this, or the other DumpRenderTree changes, were intended.


More information about the webkit-reviews mailing list