RESOLVED FIXED 97995
Remove unused sys/mman.h include
https://bugs.webkit.org/show_bug.cgi?id=97995
Summary Remove unused sys/mman.h include
Jonathan Liu
Reported 2012-10-01 00:00:48 PDT
Source/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp contains an include for sys/mman.h that isn't used. As sys/mman.h is not available on all operating systems, this also improves portability.
Attachments
Patch (1.20 KB, patch)
2012-10-01 00:05 PDT, Jonathan Liu
no flags
Jonathan Liu
Comment 1 2012-10-01 00:05:40 PDT
Kentaro Hara
Comment 2 2012-10-01 01:15:11 PDT
Comment on attachment 166415 [details] Patch ok
WebKit Review Bot
Comment 3 2012-10-01 01:35:43 PDT
Comment on attachment 166415 [details] Patch Clearing flags on attachment: 166415 Committed r130014: <http://trac.webkit.org/changeset/130014>
WebKit Review Bot
Comment 4 2012-10-01 01:35:46 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 5 2012-10-01 14:28:21 PDT
Comment on attachment 166415 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=166415&action=review > Source/JavaScriptCore/ChangeLog:9 > + The sys/mman.h is not used and removing it improves portability as not > + all systems have sys/mman.h. Where did you get the information <sys/mman.h> is not used? On OS X the madvise function and MADV_FREE constant that are used in this file is from that header. The correct change would be to put this include inside #if OS(DARWIN). Unless there is some other reason that we don’t need the include on OS X that I am not aware of.
Note You need to log in before you can comment on or make changes to this bug.