1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 20:30:32 -08:00

Check thawed hash table

This commit is contained in:
Gerd Möllmann 2024-06-07 20:20:32 +02:00
parent 5bb9ab84ef
commit 444872f75a

View file

@ -5105,6 +5105,18 @@ hash_table_thaw (Lisp_Object hash_table)
set_hash_next_slot (h, i, HASH_INDEX (h, start_of_bucket));
set_hash_index_slot (h, start_of_bucket, i);
}
#if defined HAVE_MPS && defined ENABLE_CHECKING
if (h->weakness == Weak_None)
{
DOHASH_SAFE (h, i)
{
Lisp_Object key = HASH_KEY (h, i);
ptrdiff_t j = hash_lookup (h, key);
eassert (j == i);
}
}
#endif
}
}