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
Glasgow Haskell Compiler
GHC
Commits
33d16e02
Commit
33d16e02
authored
Feb 02, 1999
by
simonm
Browse files
[project @ 1999-02-02 12:37:14 by simonm]
Update for specialised closures (THUNK_n_p etc.)
parent
25a201e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/Sanity.c
View file @
33d16e02
/* -----------------------------------------------------------------------------
* $Id: Sanity.c,v 1.
7
1999/0
1/26 11:12:47
simonm Exp $
* $Id: Sanity.c,v 1.
8
1999/0
2/02 12:37:14
simonm Exp $
*
* Sanity checking code for the heap and stack.
*
...
...
@@ -203,9 +203,32 @@ checkClosure( StgClosure* p )
return
sizeofW
(
StgMVar
);
}
case
FUN
:
case
THUNK
:
case
THUNK_1_0
:
case
THUNK_0_1
:
case
THUNK_1_1
:
case
THUNK_0_2
:
case
THUNK_2_0
:
{
nat
i
;
for
(
i
=
0
;
i
<
info
->
layout
.
payload
.
ptrs
;
i
++
)
{
ASSERT
(
LOOKS_LIKE_PTR
(
payloadPtr
(
p
,
i
)));
}
return
stg_max
(
sizeW_fromITBL
(
info
),
sizeofW
(
StgHeader
)
+
MIN_UPD_SIZE
);
}
case
FUN
:
case
FUN_1_0
:
case
FUN_0_1
:
case
FUN_1_1
:
case
FUN_0_2
:
case
FUN_2_0
:
case
CONSTR
:
case
CONSTR_1_0
:
case
CONSTR_0_1
:
case
CONSTR_1_1
:
case
CONSTR_0_2
:
case
CONSTR_2_0
:
case
IND_PERM
:
case
IND_OLDGEN
:
case
IND_OLDGEN_PERM
:
...
...
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