diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2011-07-26 17:49:27 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2011-07-26 17:49:27 +0400 |
commit | cab07051b9609b90d82db8c4586988a804a25264 (patch) | |
tree | 98eb408f4e958f983450dad080f567702d67bd74 /malloc.c | |
parent | 1b159c5602737076356b862a8d2205bb13b34909 (diff) | |
download | bdwgc-cab07051b9609b90d82db8c4586988a804a25264.tar.gz |
gc6.3alpha5 tarball importgc6_3alpha5
Diffstat (limited to 'malloc.c')
-rw-r--r-- | malloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -36,6 +36,7 @@ register struct obj_kind * kind; /* Allocate a large block of size lw words. */ /* The block is not cleared. */ /* Flags is 0 or IGNORE_OFF_PAGE. */ +/* We hold the allocation lock. */ ptr_t GC_alloc_large(lw, k, flags) word lw; int k; @@ -76,6 +77,7 @@ unsigned flags; /* Allocate a large block of size lb bytes. Clear if appropriate. */ +/* We hold the allocation lock. */ ptr_t GC_alloc_large_and_clear(lw, k, flags) word lw; int k; @@ -217,7 +219,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); } } |