* alloc.c (GC_collect_or_expand): Replace NIL with NULL in message.
* dbg_mlc.c (GC_debug_malloc, GC_debug_malloc_ignore_off_page,
GC_debug_malloc_atomic_ignore_off_page,
GC_debug_generic_malloc_inner,
GC_generic_malloc_inner_ignore_off_page, GC_debug_malloc_stubborn,
GC_debug_malloc_atomic, GC_debug_malloc_uncollectable,
GC_debug_malloc_atomic_uncollectable): Ditto.
* gcj_mlc.c (GC_debug_gcj_malloc): Ditto.
* dbg_mlc.c (GC_check_annotated_obj): Replace NIL with NULL in a
comment.
* dyn_load.c (GC_FirstDLOpenedLinkMap): Ditto.
* mark_rts.c (GC_roots_present): Ditto.
* doc/README: Ditto.
* include/private/gc_hdrs.h (IS_FORWARDING_ADDR_OR_NIL): Ditto.
* include/private/gc_priv.h (_GC_arrays): Ditto.
+2010-12-26 Ivan Maidanski <ivmai@mail.ru>
+
+ * alloc.c (GC_collect_or_expand): Replace NIL with NULL in message.
+ * dbg_mlc.c (GC_debug_malloc, GC_debug_malloc_ignore_off_page,
+ GC_debug_malloc_atomic_ignore_off_page,
+ GC_debug_generic_malloc_inner,
+ GC_generic_malloc_inner_ignore_off_page, GC_debug_malloc_stubborn,
+ GC_debug_malloc_atomic, GC_debug_malloc_uncollectable,
+ GC_debug_malloc_atomic_uncollectable): Ditto.
+ * gcj_mlc.c (GC_debug_gcj_malloc): Ditto.
+ * dbg_mlc.c (GC_check_annotated_obj): Replace NIL with NULL in a
+ comment.
+ * dyn_load.c (GC_FirstDLOpenedLinkMap): Ditto.
+ * mark_rts.c (GC_roots_present): Ditto.
+ * doc/README: Ditto.
+ * include/private/gc_hdrs.h (IS_FORWARDING_ADDR_OR_NIL): Ditto.
+ * include/private/gc_priv.h (_GC_arrays): Ditto.
+
2010-12-26 Ivan Maidanski <ivmai@mail.ru> (mostly really Geoff Norton
and Jonathan Pryor)
} else {
# if !defined(AMIGA) || !defined(GC_AMIGA_FASTALLOC)
WARN("Out of Memory! Heap size: %" GC_PRIdPTR " MiB."
- " Returning NIL!\n", (GC_heapsize - GC_unmapped_bytes) >> 20);
+ " Returning NULL!\n", (GC_heapsize - GC_unmapped_bytes) >> 20);
# endif
RESTORE_CANCEL(cancel_state);
return(FALSE);
#ifndef SHORT_DBG_HDRS
/* Check the object with debugging info at ohdr */
- /* return NIL if it's OK. Else return clobbered */
+ /* return NULL if it's OK. Else return clobbered */
/* address. */
STATIC ptr_t GC_check_annotated_obj(oh *ohdr)
{
void * result = GC_malloc(lb + DEBUG_BYTES);
if (result == 0) {
- GC_err_printf("GC_debug_malloc(%lu) returning NIL (",
+ GC_err_printf("GC_debug_malloc(%lu) returning NULL (",
(unsigned long) lb);
GC_err_puts(s);
GC_err_printf(":%ld)\n", (unsigned long)i);
void * result = GC_malloc_ignore_off_page(lb + DEBUG_BYTES);
if (result == 0) {
- GC_err_printf("GC_debug_malloc_ignore_off_page(%lu) returning NIL (",
+ GC_err_printf("GC_debug_malloc_ignore_off_page(%lu) returning NULL (",
(unsigned long) lb);
GC_err_puts(s);
GC_err_printf(":%lu)\n", (unsigned long)i);
if (result == 0) {
GC_err_printf("GC_debug_malloc_atomic_ignore_off_page(%lu)"
- " returning NIL (", (unsigned long) lb);
+ " returning NULL (", (unsigned long) lb);
GC_err_puts(s);
GC_err_printf(":%lu)\n", (unsigned long)i);
return(0);
void * result = GC_generic_malloc_inner(lb + DEBUG_BYTES, k);
if (result == 0) {
- GC_err_printf("GC internal allocation (%lu bytes) returning NIL\n",
+ GC_err_printf("GC internal allocation (%lu bytes) returning NULL\n",
(unsigned long) lb);
return(0);
}
lb + DEBUG_BYTES, k);
if (result == 0) {
- GC_err_printf("GC internal allocation (%lu bytes) returning NIL\n",
+ GC_err_printf("GC internal allocation (%lu bytes) returning NULL\n",
(unsigned long) lb);
return(0);
}
void * result = GC_malloc_stubborn(lb + DEBUG_BYTES);
if (result == 0) {
- GC_err_printf("GC_debug_malloc(%lu) returning NIL (",
+ GC_err_printf("GC_debug_malloc(%lu) returning NULL (",
(unsigned long) lb);
GC_err_puts(s);
GC_err_printf(":%lu)\n", (unsigned long)i);
void * result = GC_malloc_atomic(lb + DEBUG_BYTES);
if (result == 0) {
- GC_err_printf("GC_debug_malloc_atomic(%lu) returning NIL (",
+ GC_err_printf("GC_debug_malloc_atomic(%lu) returning NULL (",
(unsigned long) lb);
GC_err_puts(s);
GC_err_printf(":%lu)\n", (unsigned long)i);
void * result = GC_malloc_uncollectable(lb + UNCOLLECTABLE_DEBUG_BYTES);
if (result == 0) {
- GC_err_printf("GC_debug_malloc_uncollectable(%lu) returning NIL (",
+ GC_err_printf("GC_debug_malloc_uncollectable(%lu) returning NULL (",
(unsigned long) lb);
GC_err_puts(s);
GC_err_printf(":%lu)\n", (unsigned long)i);
if (result == 0) {
GC_err_printf(
- "GC_debug_malloc_atomic_uncollectable(%lu) returning NIL (",
+ "GC_debug_malloc_atomic_uncollectable(%lu) returning NULL (",
(unsigned long) lb);
GC_err_puts(s);
GC_err_printf(":%lu)\n", (unsigned long)i);
of an object will clear the debugging info associated with an
object, so accidentally repeated calls to GC_debug_free will report the
deallocation of an object without debugging information. Out of
-memory errors will be reported to stderr, in addition to returning
-NIL.
+memory errors will be reported to stderr, in addition to returning NULL.
GC_debug_malloc checking during garbage collection is enabled
with the first call to GC_debug_malloc. This will result in some
if( tag == DT_DEBUG ) {
struct link_map *lm
= ((struct r_debug *)(dp->d_un.d_ptr))->r_map;
- if( lm != 0 ) cachedResult = lm->l_next; /* might be NIL */
+ if( lm != 0 ) cachedResult = lm->l_next; /* might be NULL */
break;
}
}
if( tag == DT_DEBUG ) {
struct link_map *lm
= ((struct r_debug *)(dp->d_un.d_ptr))->r_map;
- if( lm != 0 ) cachedResult = lm->l_next; /* might be NIL */
+ if( lm != 0 ) cachedResult = lm->l_next; /* might be NULL */
break;
}
}
if (result == 0) {
GC_oom_func oom_fn = GC_oom_fn;
UNLOCK();
- GC_err_printf("GC_debug_gcj_malloc(%ld, %p) returning NIL (",
+ GC_err_printf("GC_debug_gcj_malloc(%ld, %p) returning NULL (",
(unsigned long)lb, ptr_to_struct_containing_descr);
GC_err_puts(s);
GC_err_printf(":%d)\n", i);
# endif
/* Is the result a forwarding address to someplace closer to the */
-/* beginning of the block or NIL? */
+/* beginning of the block or NULL? */
# define IS_FORWARDING_ADDR_OR_NIL(hhdr) ((size_t) (hhdr) <= MAX_JUMP)
/* Get an HBLKSIZE aligned address closer to the beginning of the block */
/* free list for immutable objects */
# ifdef MARK_BIT_PER_GRANULE
short * _obj_map[MAXOBJGRANULES+1];
- /* If not NIL, then a pointer to a map of valid */
+ /* If not NULL, then a pointer to a map of valid */
/* object addresses. */
/* _obj_map[sz_in_granules][i] is */
/* i % sz_in_granules. */
return(result);
}
- /* Is a range starting at b already in the table? If so return a */
- /* pointer to it, else NIL. */
+ /* Is a range starting at b already in the table? If so return a */
+ /* pointer to it, else NULL. */
GC_INNER struct roots * GC_roots_present(ptr_t b)
{
int h = rt_hash(b);