🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #2043

Re: is a wrapper on memory-allocation calls a good idea?

#2043
From: Chris M. Thomasson
Date: Mon, 30 Nov 2026 23:16
14 lines
1977 bytes
On 11/30/2026 11:46 AM, Bonita Montero wrote:
> Am 30.11.2026 um 19:34 schrieb Lawrence D’Oliveiro:
> 
>> Runtime memory allocators normally works in bigger units than
>> individual allocation requests, anyway. This is orthogonal to the
>> overcommit policy (or not) as supported by the kernel.
>>
>> What the Linux policy option allows is you can simply forget to
>> check for out-of-memory errors.
> 
> Yes, because C doesn't have a proper memory exhaustion mechanism
> like std::bad_alloc.

Huh? Say malloc fails...
Technical Details
Message-ID: <11el04s$vsdj$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11eh538$3fet7$1@dont-email.me> <11ehine$3kr02$1@dont-email.me> <11ej3eh$5ajn$3@dont-email.me> <11ej4cd$5t50$1@raubtier-asyl.eternal-september.org> <11ekfj1$mq5n$2@dont-email.me> <11ekjq8$pmch$1@raubtier-asyl.eternal-september.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: is a wrapper on memory-allocation calls a good idea?
Date: Mon, 30 Nov 2026 15:16:44 -0800
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <11el04s$vsdj$1@dont-email.me>
References: <11eh538$3fet7$1@dont-email.me> <11ehine$3kr02$1@dont-email.me>
 <11ej3eh$5ajn$3@dont-email.me>
 <11ej4cd$5t50$1@raubtier-asyl.eternal-september.org>
 <11ekfj1$mq5n$2@dont-email.me>
 <11ekjq8$pmch$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 30 Nov 2026 23:16:45 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1044915"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+nHznagKgPb0HmKEOiV+sfhdmrLnzyPpU="; posting-host="3bdfedc16e740e0696af595d0384a0e1"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:HoGdkHwWAxS86tbVTwZOschSTOY= sha256:4IQCj/W2RCsTPH/UzAZwIw+ffu64LumB4vbw/iFcFaY=
	sha1:LQ0zgDs3xmQX4hLXvINIcJoVbTE= sha256:HenSifMVZASTytsGI2E+RcMSZh376hALoocKKOkn2mo=
Content-Language: en-US
In-Reply-To: <11ekjq8$pmch$1@raubtier-asyl.eternal-september.org>