Thread (38 messages) flat view 38 messages, 10 authors, 2016-08-13

Re: [msysGit] Re: [PATCH 01/14] Fix non-constant array creation

From: Erik Faye-Lund <hidden>
Date: 2016-06-15 22:47:17

On Fri, Aug 21, 2009 at 10:06 PM, Johan 't Hart[off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help