(fix of commits
b52c140,
263ffbb)
* tests/disclaim_test.c (pair_dct): Add my_assert that cd is null;
store null to p->car (instead of storing cd and calling
GC_end_stubborn_change/GC_reachable_here).
pair_t p = (pair_t)obj;
int checksum;
+ my_assert(cd == NULL);
/* Check that obj and its car and cdr are not trashed. */
# ifdef DEBUG_DISCLAIM_DESTRUCT
printf("Destruct %p = (%p, %p)\n",
/* Invalidate it. */
memset(p->magic, '*', sizeof(p->magic));
p->checksum = 0;
+ p->car = NULL;
p->cdr = NULL;
- GC_ptr_store_and_dirty(&p->car, cd);
}
pair_t