core: gc: Abort upon broken heart failure.

* src/gc.c (gc_cellcpy, gc_loop): Abort upon broken heart failure.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-09-20 10:58:36 +02:00
parent 20595cd044
commit 3f368e29e1
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -424,14 +424,7 @@ gc_cellcpy (struct scm *dest, struct scm *src, size_t n)
long d = src->cdr;
dest->type = t;
if (t == TBROKEN_HEART)
{
dest->type = 0;
a = 0;
d = 0;
#if 0
assert_msg (0, "gc_cellcpy: broken heart");
#endif
}
assert_msg (0, "gc_cellcpy: broken heart");
if (t == TMACRO
|| t == TPAIR
|| t == TREF
@ -606,14 +599,7 @@ gc_loop (SCM scan)
{
long t = NTYPE (scan);
if (t == TBROKEN_HEART)
{
NTYPE (scan) = 0;
NCAR (scan) = 0;
NCDR (scan) = 0;
#if 0
assert_msg (0, "gc_loop: broken heart");
#endif
}
assert_msg (0, "gc_loop: broken heart");
/* *INDENT-OFF* */
if (t == TMACRO
|| t == TPAIR