summaryrefslogtreecommitdiff
path: root/allchblk.c
diff options
context:
space:
mode:
Diffstat (limited to 'allchblk.c')
-rw-r--r--allchblk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/allchblk.c b/allchblk.c
index 235310d8..6c3a1a85 100644
--- a/allchblk.c
+++ b/allchblk.c
@@ -683,6 +683,7 @@ GC_allochblk(size_t sz, int kind, unsigned flags/* IGNORE_OFF_PAGE or 0 */)
int split_limit; /* Highest index of free list whose blocks we */
/* split. */
+ GC_ASSERT(I_HOLD_LOCK());
GC_ASSERT((sz & (GRANULE_BYTES - 1)) == 0);
blocks = OBJ_SZ_TO_BLOCKS_CHECKED(sz);
if ((signed_word)(blocks * HBLKSIZE) < 0) {