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-Thread: 103376,419864ed91cc937d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news2.google.com!news.glorb.com!news2.glorb.com!news.mv.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: heap size exceeded for large matrices Date: Sun, 29 Aug 2010 17:17:29 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <14007b1b-c290-4c73-a0ec-d3c5195b83d4@t20g2000yqa.googlegroups.com> <4c7a360b$0$10227$ba4acef3@reader.news.orange.fr> <1dc06325-e39a-4cbc-9c54-c51921923bd7@g17g2000yqe.googlegroups.com> <4c7a9fa2$0$5423$ba4acef3@reader.news.orange.fr> <87fwxxcjlu.fsf@ludovic-brenta.org> <4c7ac40c$0$5388$ba4acef3@reader.news.orange.fr> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1283116636 18272 192.74.137.71 (29 Aug 2010 21:17:16 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 29 Aug 2010 21:17:16 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:POOlp8ekcgqZTMEoeUC5n9voaJA= Xref: g2news1.google.com comp.lang.ada:13829 Date: 2010-08-29T17:17:29-04:00 List-Id: Pascal Obry writes: > Ludovic, > >> Here is another guess: the large array was on the secondary stack, which >> is taken from the heap? > > I don't think the secondary stack is taken from the heap... but I'm far > from expert on this! It is taken from the heap (by chunks) on some (most?) platforms. On others, it is allocated on the primary stack. See package System.Parameters. As far as I know, the only things allocated on the seconary stack are function results of caller-unknown size (as in function(...) return String), and some controlled/finalization-related things. - Bob