Make fastmalloc use guardpages
Created attachment 191285 [details] Patch
Attachment 191285 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/TCSystemAlloc.cpp']" exit_code: 1 Source/WTF/wtf/TCSystemAlloc.cpp:169: Use 0 instead of NULL. [readability/null] [5] Source/WTF/wtf/TCSystemAlloc.cpp:169: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WTF/wtf/TCSystemAlloc.cpp:177: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WTF/wtf/TCSystemAlloc.cpp:178: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WTF/wtf/TCSystemAlloc.cpp:179: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 5 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 191813 [details] Patch
Attachment 191813 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/TCSystemAlloc.cpp']" exit_code: 1 Source/WTF/wtf/TCSystemAlloc.cpp:170: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WTF/wtf/TCSystemAlloc.cpp:171: Use 0 instead of NULL. [readability/null] [5] Source/WTF/wtf/TCSystemAlloc.cpp:171: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WTF/wtf/TCSystemAlloc.cpp:179: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WTF/wtf/TCSystemAlloc.cpp:180: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WTF/wtf/TCSystemAlloc.cpp:181: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 6 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 191813 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=191813&action=review >> Source/WTF/wtf/TCSystemAlloc.cpp:179 >> + mmap(result, pagesize, PROT_NONE, MAP_FIXED | MAP_PRIVATE | MAP_ANON, VM_TAG_FOR_TCMALLOC_MEMORY, 0); > > Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Shouldn't this be an mprotect() call. >> Source/WTF/wtf/TCSystemAlloc.cpp:180 >> + mmap(static_cast<char*>(result) + (mapSize - pagesize).unsafeGet(), pagesize, PROT_NONE, MAP_FIXED | MAP_PRIVATE | MAP_ANON, VM_TAG_FOR_TCMALLOC_MEMORY, 0); > > Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Ditto.
Committed r144971: <http://trac.webkit.org/changeset/144971>