Branch: Tag:

2010-07-01

2010-07-01 11:25:21 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Allocate object storage with xcalloc() to reduce the amount of work for call_c_initializers().

Rev: src/encode.c:1.294
Rev: src/object.c:1.309
Rev: src/program.c:1.778

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: program.c,v 1.777 2010/05/19 09:32:22 grubba Exp $ + || $Id: program.c,v 1.778 2010/07/01 11:25:21 grubba Exp $   */      #include "global.h"
8262:   #endif    debug_malloc_touch(c->placeholder);    c->placeholder->storage=c->p->storage_needed ? -  (char *)xalloc(c->p->storage_needed) : +  (char *)xcalloc(c->p->storage_needed, 1) :    (char *)NULL;    call_c_initializers(c->placeholder);    }