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
Container 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
Tobias Decking
GHC
Commits
7cb0ffcb
Commit
7cb0ffcb
authored
18 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
rename allocated_bytes() to allocatedBytes()
parent
3633e894
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
includes/Storage.h
+2
-2
2 additions, 2 deletions
includes/Storage.h
rts/Storage.c
+2
-2
2 additions, 2 deletions
rts/Storage.c
with
4 additions
and
4 deletions
includes/Storage.h
+
2
−
2
View file @
7cb0ffcb
...
@@ -137,7 +137,7 @@ extern void freeStorage(void);
...
@@ -137,7 +137,7 @@ extern void freeStorage(void);
rtsBool doYouWantToGC(void) Returns True if the storage manager is
rtsBool doYouWantToGC(void) Returns True if the storage manager is
ready to perform a GC, False otherwise.
ready to perform a GC, False otherwise.
lnat allocated
_b
ytes(void) Returns the number of bytes allocated
lnat allocated
B
ytes(void) Returns the number of bytes allocated
via allocate() since the last GC.
via allocate() since the last GC.
Used in the reporting of statistics.
Used in the reporting of statistics.
...
@@ -148,7 +148,7 @@ extern void freeStorage(void);
...
@@ -148,7 +148,7 @@ extern void freeStorage(void);
extern
StgPtr
allocate
(
nat
n
);
extern
StgPtr
allocate
(
nat
n
);
extern
StgPtr
allocateLocal
(
Capability
*
cap
,
nat
n
);
extern
StgPtr
allocateLocal
(
Capability
*
cap
,
nat
n
);
extern
StgPtr
allocatePinned
(
nat
n
);
extern
StgPtr
allocatePinned
(
nat
n
);
extern
lnat
allocated
_b
ytes
(
void
);
extern
lnat
allocated
B
ytes
(
void
);
extern
bdescr
*
RTS_VAR
(
small_alloc_list
);
extern
bdescr
*
RTS_VAR
(
small_alloc_list
);
extern
bdescr
*
RTS_VAR
(
large_alloc_list
);
extern
bdescr
*
RTS_VAR
(
large_alloc_list
);
...
...
This diff is collapsed.
Click to expand it.
rts/Storage.c
+
2
−
2
View file @
7cb0ffcb
...
@@ -615,7 +615,7 @@ allocate( nat n )
...
@@ -615,7 +615,7 @@ allocate( nat n )
}
}
lnat
lnat
allocated
_b
ytes
(
void
)
allocated
B
ytes
(
void
)
{
{
lnat
allocated
;
lnat
allocated
;
...
@@ -874,7 +874,7 @@ calcAllocated( void )
...
@@ -874,7 +874,7 @@ calcAllocated( void )
nat
allocated
;
nat
allocated
;
bdescr
*
bd
;
bdescr
*
bd
;
allocated
=
allocated
_b
ytes
();
allocated
=
allocated
B
ytes
();
allocated
+=
countNurseryBlocks
()
*
BLOCK_SIZE_W
;
allocated
+=
countNurseryBlocks
()
*
BLOCK_SIZE_W
;
{
{
...
...
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