Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
0292e82b
Commit
0292e82b
authored
Jan 28, 2003
by
simonmar
Browse files
[project @ 2003-01-28 17:04:58 by simonmar]
Make it multi-init-safe
parent
94fb7e72
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/BlockAlloc.c
View file @
0292e82b
/* -----------------------------------------------------------------------------
* $Id: BlockAlloc.c,v 1.1
4
200
2
/0
7/17 09:21:49
simonmar Exp $
* $Id: BlockAlloc.c,v 1.1
5
200
3
/0
1/28 17:04:58
simonmar Exp $
*
* (c) The GHC Team 1998-2000
*
...
...
@@ -29,7 +29,7 @@ static void initMBlock(void *mblock);
static
bdescr
*
allocMegaGroup
(
nat
mblocks
);
static
void
freeMegaGroup
(
bdescr
*
bd
);
static
bdescr
*
free_list
;
static
bdescr
*
free_list
=
NULL
;
/* -----------------------------------------------------------------------------
Initialisation
...
...
@@ -37,7 +37,7 @@ static bdescr *free_list;
void
initBlockAllocator
(
void
)
{
free
_
list
=
NULL
;
// The
free
list
starts off
NULL
}
/* -----------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment