summaryrefslogtreecommitdiff
path: root/typd_mlc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-06-06 21:36:52 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-06-07 14:10:37 +0300
commitd42e040f6ce46633cf9547d3ec7870d1d021f849 (patch)
tree921077f2cdfe8035340274c7682388dd361b0dd0 /typd_mlc.c
parentaabfaeb28ccbc3016aa17d0934b0affb721286cf (diff)
downloadbdwgc-d42e040f6ce46633cf9547d3ec7870d1d021f849.tar.gz
Assert that bm_table is already initialized when GC_double_descr used
(refactoring) * typd_mlc.c (GC_double_descr): Add assertion that GC_bm_table[0] is non-zero.
Diffstat (limited to 'typd_mlc.c')
-rw-r--r--typd_mlc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/typd_mlc.c b/typd_mlc.c
index 9c84e432..4019c50a 100644
--- a/typd_mlc.c
+++ b/typd_mlc.c
@@ -160,6 +160,7 @@ STATIC GC_descr GC_bm_table[WORDSZ/2];
/* Descriptor is a GC_DS_LENGTH or GC_DS_BITMAP descriptor. */
STATIC GC_descr GC_double_descr(GC_descr descriptor, word nwords)
{
+ GC_ASSERT(GC_bm_table[0] == GC_DS_BITMAP); /* bm table is initialized */
if ((descriptor & GC_DS_TAGS) == GC_DS_LENGTH) {
descriptor = GC_bm_table[BYTES_TO_WORDS((word)descriptor)];
}