Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Unified Diff: Source/wtf/PageAllocator.h

Issue 1323093004: Clean up and clarify PartitionAlloc (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Undo round/align change Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/wtf/PartitionAlloc.h » ('j') | Source/wtf/PartitionAlloc.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/PageAllocator.h
diff --git a/Source/wtf/PageAllocator.h b/Source/wtf/PageAllocator.h
index 572acc96f98758f5d46962c5150d7456e58f6489..c2a771eedfc65479f69d1b5cb99fb1ee807bfb21 100644
--- a/Source/wtf/PageAllocator.h
+++ b/Source/wtf/PageAllocator.h
@@ -97,8 +97,9 @@ WTF_EXPORT WARN_UNUSED_RETURN bool setSystemPagesAccessible(void* addr, size_t l
// Clients should not make any assumptions about the contents of decommitted
// system pages, before or after they write to the page. The only guarantee
// provided is that the contents of the system page will be deterministic again
-// after recommitting and writing to it. In particlar note that system pages are// not guaranteed to be zero-filled upon re-commit.
-// len must be a multiple of kSystemPageSize bytes.
+// after recommitting and writing to it. In particlar note that system pages are
+// not guaranteed to be zero-filled upon re-commit. len must be a multiple of
+// kSystemPageSize bytes.
WTF_EXPORT void decommitSystemPages(void* addr, size_t len);
// Recommit one or more system pages. Decommitted system pages must be
@@ -118,7 +119,8 @@ WTF_EXPORT void recommitSystemPages(void* addr, size_t len);
// Reading from a discarded page may return the original page content, or a
// page full of zeroes.
// Writing to a discarded page is the only guaranteed way to tell the system
-// that the page is required again. Once written to, the content of the page is // guaranteed stable once more. After being written to, the page content may be
+// that the page is required again. Once written to, the content of the page is
+// guaranteed stable once more. After being written to, the page content may be
// based on the original page content, or a page of zeroes.
// len must be a multiple of kSystemPageSize bytes.
WTF_EXPORT void discardSystemPages(void* addr, size_t len);
« no previous file with comments | « no previous file | Source/wtf/PartitionAlloc.h » ('j') | Source/wtf/PartitionAlloc.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698