From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c1b1b81e16e83802 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-01 01:58:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed.news.nacamar.de!news.belwue.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Help-memory allocation Date: Tue, 01 Jul 2003 10:58:22 +0200 Organization: InterNetNews at News.BelWue.DE (Stuttgart, Germany) Message-ID: <87el1aoc7l.fsf@Login.CERT.Uni-Stuttgart.DE> References: <87y8zjvckv.fsf@deneb.enyo.de> NNTP-Posting-Host: login.cert.uni-stuttgart.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.BelWue.DE 1057049902 28144 129.69.16.19 (1 Jul 2003 08:58:22 GMT) X-Complaints-To: news@news.belwue.de NNTP-Posting-Date: Tue, 1 Jul 2003 08:58:22 +0000 (UTC) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3 (i386-pc-linux-gnu) Cancel-Lock: sha1:Zal7Y7Id2N9QN3BF4BO6cP2UE/U= Xref: archiver1.google.com comp.lang.ada:39947 Date: 2003-07-01T10:58:22+02:00 List-Id: Vinzent Hoefler writes: > Mmh, so in case someone relies on the occurence of the exception in > the very moment of the allocation, would it be wise to also give an > initial value to make sure we actually "use" the allocated memory? In most cases, yes. There are systems which can merge zero pages even after they have been written to. However, some systems behave very wildly in out-of-memory situations, killing random processes etc. Better make sure that you always have enough memory available. 8-/