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
Environments
Terraform modules
Monitor
Incidents
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
Alexander Kaznacheev
GHC
Commits
edbeeead
Commit
edbeeead
authored
13 years ago
by
Simon Marlow
Committed by
Ian Lynagh
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Rename struct _CostCentreStack to struct CostCentreStack_ for consistency
Needed by #5357
parent
cf207c53
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
includes/rts/prof/CCS.h
+8
-8
8 additions, 8 deletions
includes/rts/prof/CCS.h
includes/stg/Regs.h
+1
-1
1 addition, 1 deletion
includes/stg/Regs.h
with
9 additions
and
9 deletions
includes/rts/prof/CCS.h
+
8
−
8
View file @
edbeeead
...
...
@@ -29,7 +29,7 @@ int rts_isProfiled(void);
* generator (compiler/codeGen/CgProf.hs).
*/
typedef
struct
_
CostCentre
{
typedef
struct
CostCentre
_
{
StgInt
ccID
;
// Unique Id, allocated by the RTS
char
*
label
;
...
...
@@ -42,17 +42,17 @@ typedef struct _CostCentre {
StgInt
is_caf
;
// non-zero for a CAF cost centre
struct
_
CostCentre
*
link
;
struct
CostCentre
_
*
link
;
}
CostCentre
;
typedef
struct
_
CostCentreStack
{
typedef
struct
CostCentreStack
_
{
StgInt
ccsID
;
// unique ID, allocated by the RTS
CostCentre
*
cc
;
// Cost centre at the top of the stack
struct
_
CostCentreStack
*
prevStack
;
// parent
struct
_
IndexTable
*
indexTable
;
// children
struct
_
CostCentreStack
*
root
;
// root of stack
struct
CostCentreStack
_
*
prevStack
;
// parent
struct
IndexTable
_
*
indexTable
;
// children
struct
CostCentreStack
_
*
root
;
// root of stack
StgWord
depth
;
// number of items in the stack
StgWord64
scc_count
;
// Count of times this CCS is entered
...
...
@@ -103,10 +103,10 @@ typedef struct _CostCentreStack {
// subsequent times we push a certain CC on a CCS we get the same
// result).
typedef
struct
_
IndexTable
{
typedef
struct
IndexTable
_
{
CostCentre
*
cc
;
CostCentreStack
*
ccs
;
struct
_
IndexTable
*
next
;
struct
IndexTable
_
*
next
;
unsigned
int
back_edge
;
}
IndexTable
;
...
...
This diff is collapsed.
Click to expand it.
includes/stg/Regs.h
+
1
−
1
View file @
edbeeead
...
...
@@ -80,7 +80,7 @@ typedef struct StgRegTable_ {
StgPtr
rSpLim
;
StgPtr
rHp
;
StgPtr
rHpLim
;
struct
_
CostCentreStack
*
rCCCS
;
// current cost-centre-stack
struct
CostCentreStack
_
*
rCCCS
;
// current cost-centre-stack
struct
StgTSO_
*
rCurrentTSO
;
struct
nursery_
*
rNursery
;
struct
bdescr_
*
rCurrentNursery
;
/* Hp/HpLim point into this block */
...
...
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