From 56ff591bb94bcfc6da50e436508aecc99209c8e2 Mon Sep 17 00:00:00 2001 From: Douglas Katzman Date: Wed, 1 Nov 2017 22:33:16 -0400 Subject: [PATCH] Rename immobile_filler_p -> filler_obj_p --- src/code/room.lisp | 2 +- src/runtime/gc-private.h | 4 ++-- src/runtime/gencgc.c | 2 +- src/runtime/immobile-space.c | 28 ++++++++++++++-------------- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/code/room.lisp b/src/code/room.lisp index 3ad2754b6..6b0f3e553 100644 --- a/src/code/room.lisp +++ b/src/code/room.lisp @@ -415,7 +415,7 @@ We could try a few things to mitigate this: (:immobile ;; Filter out filler objects. These either look like cons cells ;; in fixedobj subspace, or code without enough header words - ;; in varyobj subspace. (cf 'immobile_filler_p' in gc-internal.h) + ;; in varyobj subspace. (cf 'filler_obj_p' in gc-internal.h) (dx-flet ((filter (obj type size) (unless (consp obj) (funcall fun obj type size)))) diff --git a/src/runtime/gc-private.h b/src/runtime/gc-private.h index 8f16f3c0d..4348138da 100644 --- a/src/runtime/gc-private.h +++ b/src/runtime/gc-private.h @@ -175,13 +175,13 @@ static inline int __immobile_obj_gen_bits(lispobj* pointer) // native pointer #error "Need to define immobile_obj_gen_bits() for big-endian" #endif /* little-endian */ -static inline boolean immobile_filler_p(lispobj* obj) { +static inline boolean filler_obj_p(lispobj* obj) { return *(int*)obj == (2<debug_info = varyobj_holes; varyobj_holes = (lispobj)code; @@ -1437,7 +1437,7 @@ search_immobile_space(void *pointer) start = (lispobj*)IMMOBILE_VARYOBJ_SUBSPACE_START; } lispobj* found = gc_search_space(start, pointer); - return (found && immobile_filler_p(found)) ? 0 : found; + return (found && filler_obj_p(found)) ? 0 : found; } else if (pointer < (void*)immobile_fixedobj_free_pointer) { char *page_base = (char*)((lispobj)pointer & ~(IMMOBILE_CARD_BYTES-1)); if (page_attributes_valid) { @@ -1601,7 +1601,7 @@ static lispobj* defrag_search_varyobj_subspace(lispobj addr) lispobj *where = varyobj_scan_start(page); size_t count; do { - if (immobile_filler_p(where)) { + if (filler_obj_p(where)) { count = sizetab[widetag_of(*where)](where); } else { gc_assert(forwarding_pointer_p(where)); @@ -1848,7 +1848,7 @@ static lispobj* get_load_address(lispobj* old) { if (forwarding_pointer_p(old)) return native_pointer(forwarding_pointer_value(old)); - gc_assert(immobile_filler_p(old)); + gc_assert(filler_obj_p(old)); return 0; } @@ -1979,7 +1979,7 @@ void defrag_immobile_space(int* components, boolean verbose) lispobj new_vaddr = 0; // FIXME: generalize gc_assert(widetag == CODE_HEADER_WIDETAG); - if (!immobile_filler_p(addr)) { + if (!filler_obj_p(addr)) { ++n_code_components; new_vaddr = IMMOBILE_VARYOBJ_SUBSPACE_START + varyobj_tempspace.n_bytes; varyobj_tempspace.n_bytes += sizetab[widetag](addr) << WORD_SHIFT; @@ -2029,7 +2029,7 @@ void defrag_immobile_space(int* components, boolean verbose) lispobj* limit = (lispobj*)((char*)obj + IMMOBILE_CARD_BYTES); for ( ; obj < limit ; obj = (lispobj*)((char*)obj + obj_spacing) ) { lispobj word = *obj; - if (fixnump(word) || immobile_filler_p(obj)) + if (fixnump(word) || filler_obj_p(obj)) continue; char** alloc_ptr; int lowtag = OTHER_POINTER_LOWTAG; @@ -2079,7 +2079,7 @@ void defrag_immobile_space(int* components, boolean verbose) lispobj* obj = low_page_address(page_index); lispobj* limit = (lispobj*)((char*)obj + IMMOBILE_CARD_BYTES); for ( ; obj < limit ; obj = (lispobj*)((char*)obj + obj_spacing) ) { - if (fixnump(*obj) || immobile_filler_p(obj)) + if (fixnump(*obj) || filler_obj_p(obj)) continue; gc_assert(forwarding_pointer_p(obj)); lispobj* new = native_pointer(forwarding_pointer_value(obj)); @@ -2239,7 +2239,7 @@ void verify_immobile_page_protection(int keep_gen, int new_gen) lispobj* varyobj_free_ptr = immobile_space_free_pointer; if (page_end > varyobj_free_ptr) page_end = varyobj_free_ptr; for ( ; obj < page_end ; obj += sizetab[widetag_of(*obj)](obj) ) { - if (!immobile_filler_p(obj) + if (!filler_obj_p(obj) && varyobj_points_to_younger_p(obj, __immobile_obj_gen_bits(obj), keep_gen, new_gen, (char*)page_begin, (char*)page_end)) @@ -2447,7 +2447,7 @@ void check_varyobj_pages() lispobj* scan_start_obj = (lispobj*)(long)*found_below; if (scan_start_obj != (lispobj*)(long)stored_scan_start) { //printf("page %d: found-below=%p stored=%p\n", page, scan_start_obj, stored_scan_start); - while (immobile_filler_p(scan_start_obj)) { + while (filler_obj_p(scan_start_obj)) { int nwords = sizetab[widetag_of(*scan_start_obj)](scan_start_obj); // printf("skipping %d words to %p\n", nwords, scan_start_obj + nwords); scan_start_obj += nwords; @@ -2496,7 +2496,7 @@ void check_varyobj_pages() int mask = 0; for ( ; obj < limit ; obj += sizetab[widetag_of(*obj)](obj) ) { int gen = __immobile_obj_gen_bits(obj); - if (immobile_filler_p(obj)) { + if (filler_obj_p(obj)) { gc_assert(gen == 0); } else { gc_assert(0 <= gen && gen <= PSEUDO_STATIC_GENERATION); -- 2.11.4.GIT