GC_change_stubborn(q);
}
- GC_API void GC_CALL GC_debug_end_stubborn_change(const void *p)
- {
- const void * q = GC_base_C(p);
- hdr * hhdr;
-
- if (q == 0) {
- ABORT_ARG1("GC_debug_end_stubborn_change: bad arg", ": %p", p);
- }
- hhdr = HDR(q);
- if (hhdr -> hb_obj_kind != STUBBORN) {
- ABORT_ARG1("GC_debug_end_stubborn_change: arg not stubborn",
- ": %p", p);
- }
- GC_end_stubborn_change(q);
- }
-
#else /* !STUBBORN_ALLOC */
GC_API GC_ATTR_MALLOC void * GC_CALL GC_debug_malloc_stubborn(size_t lb,
GC_API void GC_CALL GC_debug_change_stubborn(
const void * p GC_ATTR_UNUSED) {}
-
- GC_API void GC_CALL GC_debug_end_stubborn_change(
- const void * p GC_ATTR_UNUSED) {}
#endif /* !STUBBORN_ALLOC */
+GC_API void GC_CALL GC_debug_end_stubborn_change(const void *p)
+{
+ const void * q = GC_base_C(p);
+
+ if (NULL == q) {
+ ABORT_ARG1("GC_debug_end_stubborn_change: bad arg", ": %p", p);
+ }
+# ifdef STUBBORN_ALLOC
+ if (HDR(q) -> hb_obj_kind != STUBBORN)
+ ABORT_ARG1("GC_debug_end_stubborn_change: arg not stubborn",
+ ": %p", p);
+# endif
+ GC_end_stubborn_change(q);
+}
+
GC_API GC_ATTR_MALLOC void * GC_CALL GC_debug_malloc_atomic(size_t lb,
GC_EXTRA_PARAMS)
{