Re: [msysGit] Re: [PATCH 01/14] Fix non-constant array creation
- From
Erik Faye-Lund <kusmabite@googlemail.com>
- Date
- Aug 22, 2009, 10:35 UTC
- Message-ID
- <40aa078e0908220335t6071fd4ay160827619fa9ab6c@mail.gmail.com>
- In-Reply-To
- <4A8EFE29.6010706@gmail.com>
On Fri, Aug 21, 2009 at 10:06 PM, Johan 't Hart<johanthart@gmail.com> wrote:
> alloca() throws an exception when out of stack memory. But what would the > dynamically alloced array do when it runs out of memory? (Supposing that > those arrays are also created on the stack, which I don't know...) Is that > realy more complicated?
You get a run-time error. Or rather, you get a run-time error if you're out of address space. If you go out of memory, swapping mechanisms are used. And in turn, if the swapping mechanisms fail, you'll get a run-time error AFAIK.
-- Erik "kusma" Faye-Lund kusmabite@gmail.com (+47) 986 59 656