[Libvir] RFC: safer memory allocation APIs with compile time checking

David Lutterkort dlutter at redhat.com
Mon Apr 28 23:51:19 UTC 2008

On Mon, 2008-04-28 at 20:16 +0100, Daniel P. Berrange wrote:
> I've just hacked up a similar approach to the one DBus uses to fail
> the 'nth' malloc 

Does that fail exactly the nth malloc or the nth malloc and after (or
from nth malloc to (n+k)th malloc) ? The latter two are more realistic
for an OOM scenario, and make sure you don't blow up in some error
handling routine.

> and run the 'xmconfigtest' test case for every 'n'
> between 1 and 200 and OOM handling worked correctly in every case.



More information about the libvir-list mailing list