[llvm] 0433abc - [docs][scudo] Add information about M_PURGE_ALL.
Christopher Ferris via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 22 13:36:41 PDT 2023
Author: Christopher Ferris
Date: 2023-03-22T13:36:29-07:00
New Revision: 0433abc8e03737982fe103bf1563393e738c1ba0
URL: https://github.com/llvm/llvm-project/commit/0433abc8e03737982fe103bf1563393e738c1ba0
DIFF: https://github.com/llvm/llvm-project/commit/0433abc8e03737982fe103bf1563393e738c1ba0.diff
LOG: [docs][scudo] Add information about M_PURGE_ALL.
Add information about M_PURGE_ALL
Reviewed By: Chia-hungDuan
Differential Revision: https://reviews.llvm.org/D146336
Added:
Modified:
llvm/docs/ScudoHardenedAllocator.rst
Removed:
################################################################################
diff --git a/llvm/docs/ScudoHardenedAllocator.rst b/llvm/docs/ScudoHardenedAllocator.rst
index 9c1cfa6edcd63..875d018c4d9ff 100644
--- a/llvm/docs/ScudoHardenedAllocator.rst
+++ b/llvm/docs/ScudoHardenedAllocator.rst
@@ -265,7 +265,16 @@ The following "mallopt" options are available (options are defined in
| | the interval to the minimum and maximum value as |
| | specified at compile time). |
+---------------------------+-------------------------------------------------------+
-| M_PURGE | Forces immediate memory reclaiming (value is unused). |
+| M_PURGE | Forces immediate memory reclaiming but does not |
+| | reclaim everything. For smaller size classes, there |
+| | is still some memory that is not reclaimed due to the |
+| | extra time it takes and the small amount of memory |
+| | that can be reclaimed. |
+| | The value is ignored. |
++---------------------------+-------------------------------------------------------+
+| M_PURGE_ALL | Same as M_PURGE but will force release all possible |
+| | memory regardless of how long it takes. |
+| | The value is ignored. |
+---------------------------+-------------------------------------------------------+
| M_MEMTAG_TUNING | Tunes the allocator's choice of memory tags to make |
| | it more likely that a certain class of memory errors |
More information about the llvm-commits
mailing list