From 69a9721f18801a1e219f9278f5727931a972360e Mon Sep 17 00:00:00 2001 From: yasuoka <> Date: Wed, 4 Jun 2025 00:38:01 +0000 Subject: Revert 1.144 of lib/libc/stdlib/malloc.3. It was changed by accident by my previous commit. --- src/lib/libc/stdlib/malloc.3 | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/lib/libc') diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3 index 72b82f77ab..ee13b01bd4 100644 --- a/src/lib/libc/stdlib/malloc.3 +++ b/src/lib/libc/stdlib/malloc.3 @@ -30,9 +30,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: malloc.3,v 1.146 2025/06/03 14:15:53 yasuoka Exp $ +.\" $OpenBSD: malloc.3,v 1.147 2025/06/04 00:38:01 yasuoka Exp $ .\" -.Dd $Mdocdate: June 3 2025 $ +.Dd $Mdocdate: June 4 2025 $ .Dt MALLOC 3 .Os .Sh NAME @@ -372,18 +372,9 @@ Use with to get a verbose dump of malloc's internal state. .It Cm X .Dq xmalloc . -Rather than return failure, +Rather than return failure to handle out-of-memory conditions gracefully, .Xr abort 3 the program with a diagnostic message on stderr. -It is the intention that this option be set at compile time by -including in the source: -.Bd -literal -offset indent -extern char *malloc_options; -malloc_options = "X"; -.Ed -.Pp -Note that this will cause code that is supposed to handle -out-of-memory conditions gracefully to abort instead. .It Cm < .Dq Halve the cache size . Decrease the size of the free page cache by a factor of two. -- cgit v1.2.3-55-g6feb