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
2cb4ece7
Commit
2cb4ece7
authored
26 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1999-03-26 14:55:05 by simonm]
profiling-related sanity checker fixes.
parent
74041e1c
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/rts/Sanity.c
+5
-8
5 additions, 8 deletions
ghc/rts/Sanity.c
with
5 additions
and
8 deletions
ghc/rts/Sanity.c
+
5
−
8
View file @
2cb4ece7
/* -----------------------------------------------------------------------------
* $Id: Sanity.c,v 1.1
1
1999/03/
03 19:07:39 sof
Exp $
* $Id: Sanity.c,v 1.1
2
1999/03/
26 14:55:05 simonm
Exp $
*
* (c) The GHC Team, 1998-1999
*
...
...
@@ -84,7 +84,7 @@ checkStackClosure( StgClosure* c )
switch
(
info
->
type
)
{
case
RET_DYN
:
/* Dynamic bitmap: the mask is stored on the stack */
{
StgRetDyn
*
r
=
stgCast
(
StgRetDyn
*
,
c
)
;
StgRetDyn
*
r
=
(
StgRetDyn
*
)
c
;
return
sizeofW
(
StgRetDyn
)
+
checkSmallBitmap
(
r
->
payload
,
r
->
liveness
);
}
...
...
@@ -95,13 +95,10 @@ checkStackClosure( StgClosure* c )
case
CATCH_FRAME
:
case
STOP_FRAME
:
case
SEQ_FRAME
:
return
sizeofW
(
StgClosure
)
+
checkSmallBitmap
((
StgPtr
)
c
->
payload
,
info
->
layout
.
bitmap
);
return
1
+
checkSmallBitmap
((
StgPtr
)
c
+
1
,
info
->
layout
.
bitmap
);
case
RET_BIG
:
/* large bitmap (> 32 entries) */
case
RET_VEC_BIG
:
return
sizeofW
(
StgClosure
)
+
checkLargeBitmap
((
StgPtr
)
c
->
payload
,
info
->
layout
.
large_bitmap
);
return
1
+
checkLargeBitmap
((
StgPtr
)
c
+
1
,
info
->
layout
.
large_bitmap
);
case
FUN
:
case
FUN_STATIC
:
/* probably a slow-entry point return address: */
return
1
;
...
...
@@ -109,7 +106,7 @@ checkStackClosure( StgClosure* c )
/* if none of the above, maybe it's a closure which looks a
* little like an infotable
*/
checkClosureShallow
(
*
stgCast
(
StgClosure
**
,
c
));
checkClosureShallow
(
*
(
StgClosure
**
)
c
);
return
1
;
/* barf("checkStackClosure: weird activation record found on stack (%p).",c); */
}
...
...
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