/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/cmpintmd/mips.h,v 1.12 1992/08/20 01:12:39 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/cmpintmd/mips.h,v 1.13 1992/08/20 04:28:39 jinx Exp $
Copyright (c) 1989-1992 Massachusetts Institute of Technology
limit = ((SCHEME_OBJECT *) Registers[REGBLOCK_CLOSURE_LIMIT]);
space = ((limit - free_closure) + 3);
+ /* Bump up to a multiple of CLOSURE_ENTRY_WORDS.
+ Otherwise clearing by the allocation code may clobber
+ a different word.
+ */
+ size = (CLOSURE_ENTRY_WORDS
+ * ((size + (CLOSURE_ENTRY_WORDS - 1))
+ / CLOSURE_ENTRY_WORDS))
if (size > space)
{
long chunk_size;