RESOLVED FIXED 111353
Make fastmalloc use guardpages
https://bugs.webkit.org/show_bug.cgi?id=111353
Summary Make fastmalloc use guardpages
Oliver Hunt
Reported 2013-03-04 12:05:27 PST
Make fastmalloc use guardpages
Attachments
Patch (1.78 KB, patch)
2013-03-04 12:07 PST, Oliver Hunt
no flags
Patch (2.15 KB, patch)
2013-03-06 12:54 PST, Oliver Hunt
andersca: review+
Oliver Hunt
Comment 1 2013-03-04 12:07:06 PST
WebKit Review Bot
Comment 2 2013-03-04 12:08:57 PST
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.
Oliver Hunt
Comment 3 2013-03-06 12:54:57 PST
WebKit Review Bot
Comment 4 2013-03-06 12:57:41 PST
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.
Michael Saboff
Comment 5 2013-03-06 13:17:30 PST
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.
Oliver Hunt
Comment 6 2013-03-06 18:43:32 PST
Note You need to log in before you can comment on or make changes to this bug.