malloc: add M_PURGE mallopt flag
Add a new mallopt flag that purges any pending decaying pages.
Test: boots and works
bug 117795621
Change-Id: Ib250ae2b705b6a368c1efb801d6a7be54e075acb
(cherry pciekd from commit 5083e833a650ebe510ed52603ce5c8cd4374c48e)
diff --git a/libc/include/malloc.h b/libc/include/malloc.h
index f5fbedf..58a9b1d 100644
--- a/libc/include/malloc.h
+++ b/libc/include/malloc.h
@@ -163,6 +163,7 @@
/** mallopt() option to set the decay time. Valid values are 0 and 1. */
#define M_DECAY_TIME -100
+#define M_PURGE -101
/**
* [mallopt(3)](http://man7.org/linux/man-pages/man3/mallopt.3.html) modifies