Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
33d16e02
Commit
33d16e02
authored
26 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1999-02-02 12:37:14 by simonm]
Update for specialised closures (THUNK_n_p etc.)
parent
25a201e1
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/rts/Sanity.c
+25
-2
25 additions, 2 deletions
ghc/rts/Sanity.c
with
25 additions
and
2 deletions
ghc/rts/Sanity.c
+
25
−
2
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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment