Bug 80505

Summary: Linux has madvise enough to support OSAllocator::commit/decommit
Product: WebKit Reporter: Hojong Han <hojong.han>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: barraclough, fpizlo, ggaren, msaboff, paroga, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: Linux   
Description Flags
Patch none

Description Hojong Han 2012-03-07 03:17:13 PST
Linux has madvise enough to support OSAllocator::commit/decommit,
but it's not used in commit and decommit.
What about using this function with OS(LINUX) option?
Comment 1 Hojong Han 2012-03-07 03:30:24 PST
Created attachment 130587 [details]
Comment 2 Geoffrey Garen 2012-03-07 12:32:16 PST
Comment on attachment 130587 [details]

Comment 3 Hojong Han 2012-03-14 21:12:52 PDT
Thanks for review.
Isn't it necessary to put it in the queue?
Is there anything to do more? Please let me know.
Comment 4 WebKit Review Bot 2012-03-15 12:54:29 PDT
Comment on attachment 130587 [details]

Clearing flags on attachment: 130587

Committed r110874: <http://trac.webkit.org/changeset/110874>
Comment 5 WebKit Review Bot 2012-03-15 12:54:34 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Patrick R. Gansterer 2012-03-15 13:27:44 PDT
Comment on attachment 130587 [details]

View in context: https://bugs.webkit.org/attachment.cgi?id=130587&action=review

> Source/JavaScriptCore/wtf/OSAllocatorPosix.cpp:145
> +    madvise(address, bytes, MADV_DONTNEED);

what's the difference between this line and the line guarded with HAVE(MADV_DONTNEED)? can't we merge them or at least follow the "style" of the other lines?