Skip to content
Snippets Groups Projects
Commit 7cb0ffcb authored by Simon Marlow's avatar Simon Marlow
Browse files

rename allocated_bytes() to allocatedBytes()

parent 3633e894
No related merge requests found
...@@ -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_bytes(void) Returns the number of bytes allocated lnat allocatedBytes(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_bytes ( void ); extern lnat allocatedBytes ( 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);
......
...@@ -615,7 +615,7 @@ allocate( nat n ) ...@@ -615,7 +615,7 @@ allocate( nat n )
} }
lnat lnat
allocated_bytes( void ) allocatedBytes( 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_bytes(); allocated = allocatedBytes();
allocated += countNurseryBlocks() * BLOCK_SIZE_W; allocated += countNurseryBlocks() * BLOCK_SIZE_W;
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment