🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #2001

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

#2001
From: Andrey Tarasevich
Date: Mon, 30 Nov 2026 06:44
17 lines
1922 bytes
On Sun 11/29/2026 10:00 PM, Lawrence D’Oliveiro wrote:
> So you don’t even need to bother to check for memory-allocation
> failures, because you will never get a failure status.

Well, firstly, overcommit approach simply substitutes "virtual address 
space" in place of "actual memory" as the limited resource. And while 
address space is usually huge, one can still exhaust it if one really 
sets their mind to it. This can still lead to an allocation failure.

Secondly, there's still the implementation-dependent limit for the 
largest continuous block in a single allocation, which can also lead to 
an allocation failure.

-- 
Best regards,
Andrey
Technical Details
Message-ID: <11ej60c$6bhr$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>

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: Andrey Tarasevich <noone@noone.net>
Newsgroups: comp.lang.c
Subject: Re: is a wrapper on memory-allocation calls a good idea?
Date: Sun, 29 Nov 2026 22:44:26 -0800
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <11ej60c$6bhr$1@dont-email.me>
References: <11eh538$3fet7$1@dont-email.me> <11ehine$3kr02$1@dont-email.me>
 <11ej3eh$5ajn$3@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 06:44:29 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="208443"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+Ucav5J4FHY4BXZPT2SsLw"; posting-host="88f0469027c62b25979120c6d79cd4af"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:wKCvWK7J2B97O0oc2dlubiSr3r0= sha256:3VcHcDmUCLnok2ESWNPCknceUfgD+14TY7Vyt18JENE=
	sha1:/penA9D2o24mTP0m9tm44z2P7PY= sha256:FeYtnPqBBV9HsgR8lf774QnwK6Q7EVJ2AGQvnY6QoEM=
Content-Language: en-US
In-Reply-To: <11ej3eh$5ajn$3@dont-email.me>