Thread (41 messages) flat view 41 messages, 7 authors, 2016-06-15

Re: [PATCH] Wrap inflateInit to retry allocation after releasing pack memory

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:45:53


On Thu, 8 Jan 2009, R. Tyler Ballance wrote:
quoted
Tyler - does this make the corruption errors go away, and be replaced by 
hard failures with "out of memory" reporting?
Yeah, looks like it:
Well, I was hoping that you'd have a confirmation from your own huge repo, 
but I do suspect it's all the same thing, so I guess this counts as 
confirmation too.
quoted
This patch is potentially pretty noisy, on purpose. I didn't remove the 
reporting from places that already do so - some of them have stricter 
errors than this.
I'm assuming this patch is going to be reworked, if so, I'll back it out
of our internal 1.6.1 build and anxiously await The Real Deal(tm)
Oh, it shouldn't be any noisier under _normal_ load - it's more that 
certain real corruption cases will now report the error twice. That said, 
the new errors should actually be more informative than the old ones, so 
even that isn't necessarily all bad.

Junio - I think we should apply this, and likely to the stable branch too. 
Add the re-trying the inflateInit() after shrinking pack windows on top of 
it.

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