| Index: base/allocator/partition_allocator/page_allocator.h
|
| diff --git a/base/allocator/partition_allocator/page_allocator.h b/base/allocator/partition_allocator/page_allocator.h
|
| index f57beb7b37fca257b6a77b8675151fa55659c232..b5e3d0265a86aa7276b6f9a5e7d8becf34c3b576 100644
|
| --- a/base/allocator/partition_allocator/page_allocator.h
|
| +++ b/base/allocator/partition_allocator/page_allocator.h
|
| @@ -75,15 +75,24 @@ BASE_EXPORT WARN_UNUSED_RESULT bool SetSystemPagesAccessible(void* address,
|
|
|
| // Decommit one or more system pages. Decommitted means that the physical memory
|
| // is released to the system, but the virtual address space remains reserved.
|
| -// System pages are re-committed by calling recommitSystemPages(). Touching
|
| +// System pages are re-committed by calling RecommitSystemPages(). Touching
|
| // a decommitted page _may_ fault.
|
| // 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.
|
| -BASE_EXPORT void DecommitSystemPages(void* address, size_t length);
|
| +// not guaranteed to be zero-filled upon re-commit. |len| must be a multiple of
|
| +// |kSystemPageSize| bytes.
|
| +//
|
| +// |purge_hint| is an optional hint to signal that the system pages can
|
| +// be discarded from process memory right away. By supplying |true|, the
|
| +// implementation makes an OS-specific best effort to decommit the system pages
|
| +// sooner from the process. Even with |purge_hint| set to |true|, it is not
|
| +// guaranteed that the decommitted system pages will be zero-filled upon
|
| +// recommit.
|
| +BASE_EXPORT void DecommitSystemPages(void* address,
|
| + size_t length,
|
| + bool purge_hint = false);
|
|
|
| // Recommit one or more system pages. Decommitted system pages must be
|
| // recommitted before they are read are written again.
|
|
|