From: fche Date: Wed, 7 Jan 2004 21:47:35 +0000 (+0000) Subject: * approved by rth X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15a39b002ac8c5c6a4fc48117d6c90d79ac83162;p=gc * approved by rth 2004-01-07 Dave Jones * malloc.c (GC_generic_malloc): Correct initialization typo. * mallocx.c (GC_generic_malloca_ignore_off_page): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75518 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/ChangeLog b/ChangeLog index 347a310d..354e11b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-01-07 Dave Jones + + * malloc.c (GC_generic_malloc): Correct initialization typo. + * mallocx.c (GC_generic_malloca_ignore_off_page): Ditto. + 2003-10-31 Richard Earnshaw * include/private/gcconfig.h: Re-install change of 2003-04-16. diff --git a/malloc.c b/malloc.c index f5c8f06b..353a9bc9 100644 --- a/malloc.c +++ b/malloc.c @@ -217,7 +217,7 @@ register int k; GC_words_allocd += lw; UNLOCK(); ENABLE_SIGNALS(); - if (init & !GC_debugging_started && 0 != result) { + if (init && !GC_debugging_started && 0 != result) { BZERO(result, n_blocks * HBLKSIZE); } } diff --git a/mallocx.c b/mallocx.c index 06f45622..84993da2 100644 --- a/mallocx.c +++ b/mallocx.c @@ -202,7 +202,7 @@ register int k; if (0 == result) { return((*GC_oom_fn)(lb)); } else { - if (init & !GC_debugging_started) { + if (init && !GC_debugging_started) { BZERO(result, n_blocks * HBLKSIZE); } return(result);