🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #2034

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

#2034
From: Bonita Montero
Date: Mon, 30 Nov 2026 19:46
11 lines
1905 bytes
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.
Technical Details
Message-ID: <11ekjq8$pmch$1@raubtier-asyl.eternal-september.org>
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!raubtier-asyl.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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita Montero <Bonita.Montero@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: is a wrapper on memory-allocation calls a good idea?
Date: Mon, 30 Nov 2026 20:46:17 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <11ekjq8$pmch$1@raubtier-asyl.eternal-september.org>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 30 Nov 2026 19:46:17 +0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org;
	logging-data="842129"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18tckYGxw1i8nVvD4n52je67rBfZckhKmQ="; posting-host="74af7535fe23a1fc2eebd3fb26edb9d1"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:yA2En8jIG9LV+O8WEijOnj1xVZ0= sha256:k2ZAwL9OY1an/dae4K/PmBBgfdI2PpYLkYM5I0fHQoE=
	sha1:DdYCVbjtrICKJWspJc4zF8gFDak= sha256:2/7OLtfUpS9vLYvEJQdXqMeOpiZ0RTNfQ5WBQlx3XQ0=
In-Reply-To: <11ekfj1$mq5n$2@dont-email.me>
Content-Language: de-DE