1 extern lispobj
*from_space
;
2 extern lispobj
*from_space_free_pointer
;
4 extern lispobj
*new_space
;
5 extern lispobj
*new_space_free_pointer
;
9 /* #if defined(DEBUG_SPACE_PREDICATES) */
12 from_space_p(lispobj object
)
16 /* this can be called for untagged pointers as well as for
17 descriptors, so this assertion's not applicable
18 gc_assert(is_lisp_pointer(object));
20 ptr
= (lispobj
*) native_pointer(object
);
22 return ((from_space
<= ptr
) &&
23 (ptr
< from_space_free_pointer
));
27 new_space_p(lispobj object
)
31 /* gc_assert(is_lisp_pointer(object)); */
33 ptr
= (lispobj
*) native_pointer(object
);
35 return ((new_space
<= ptr
) &&
36 (ptr
< new_space_free_pointer
));
41 #define from_space_p(ptr) \
42 ((from_space <= ((lispobj *) ((pointer_sized_uint_t) ptr))) && \
43 (((lispobj *) ((pointer_sized_uint_t) ptr))< from_space_free_pointer))
45 #define new_space_p(ptr) \
46 ((new_space <= ((lispobj *) ((pointer_sized_uint_t) ptr))) && \
47 (((lispobj *) ((pointer_sized_uint_t) ptr)) < new_space_free_pointer))
51 extern boolean
cheneygc_handle_wp_violation(os_context_t
*, void*);