Skip to content
Snippets Groups Projects
Commit 663f22e6 authored by sven.panne@aedion.de's avatar sven.panne@aedion.de
Browse files

[project @ 1999-07-01 13:48:22 by panne]

The allocator for mega groups now checks if consecutive megablocks on
the free list are contiguous in memory. The omission of this check
caused all kinds of funny runtime errors and took away at least five
happy years of my life...  :-{
parent eea46a8c
No related merge requests found
/* -----------------------------------------------------------------------------
* $Id: BlockAlloc.c,v 1.5 1999/03/26 14:54:43 simonm Exp $
* $Id: BlockAlloc.c,v 1.6 1999/07/01 13:48:22 panne Exp $
*
* (c) The GHC Team 1998-1999
*
......@@ -128,7 +128,9 @@ allocMegaGroup(nat n)
if (bd->blocks == BLOCKS_PER_MBLOCK) { /* whole megablock found */
if (grp_start == NULL) { /* is it the first one we've found? */
/* is it the first one we've found or a non-contiguous megablock? */
if (grp_start == NULL ||
bd->start != last->start + MBLOCK_SIZE/sizeof(W_)) {
grp_start = bd;
grp_prev = last;
mbs_found = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment