Re: QGit: Shrink used memory with custom git log format

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jan Hudec
Date: Tuesday, November 27, 2007 - 12:19 pm

On Tue, Nov 27, 2007 at 10:48:00 +0000, Johannes Schindelin wrote:
=20
=20

Unfortunately, exceptions won't really work. Why? Because to use exceptions,
you need to have an exception-safe code. That is the code needs to free any
allocated resources when it's aborted by exception. And git code is not
exceptions safe. Given the lack of destructors in C, it means registering a=
ll
resource allocation in some kind of pool, so they can be freed en masse in
case of failure. Than you can also use longjmp for die (for C they really
behave the same).

--=20
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
QGit: Shrink used memory with custom git log format, Marco Costalba, (Sat Nov 24, 1:14 am)
Re: QGit: Shrink used memory with custom git log format, Shawn O. Pearce, (Mon Nov 26, 6:52 pm)
Re: QGit: Shrink used memory with custom git log format, Johannes Schindelin, (Tue Nov 27, 3:48 am)
Re: QGit: Shrink used memory with custom git log format, Marco Costalba, (Tue Nov 27, 5:36 am)
Re: QGit: Shrink used memory with custom git log format, Jan Hudec, (Tue Nov 27, 12:19 pm)
Re: QGit: Shrink used memory with custom git log format, Johannes Schindelin, (Wed Nov 28, 5:01 am)