Thread (14 messages) flat view 14 messages, 9 authors, 2016-06-15

Re: [PATCH] Teach "git add" and friends to be paranoid

From: Jeff King <hidden>
Date: 2016-06-15 22:48:18

Possibly related (same subject, not in this thread)

On Wed, Feb 17, 2010 at 05:16:23PM -0800, Junio C Hamano wrote:
+	if (paranoid) {
+		unsigned char stablebuf[262144];
Is 256K a bit big for allocating on the stack? Modern OS's seem to give
us at least a couple of megabytes (my Linux boxen all have 8M, and
even Solaris 8 seems to have that much). But PTHREAD_STACK_MIN is only
16K (I don't think it is possible to hit this code path in a thread
right now, but I'm not sure). And I have no idea what the situation is
on Windows.

I dunno if it is worth worrying about, but maybe somebody more clueful
than me can comment.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help