Commit 7362809b authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

rts: drop unused calcLiveBlocks, calcLiveWords

Use of these helper functions was removed by
  commit 18896fa2


  Author: Simon Marlow <marlowsd@gmail.com>
  Date:   Wed Feb 2 15:49:55 2011 +0000

Noticed by uselex.rb:
    calcLiveBlocks: [R]: exported from:
        ./rts/dist/build/sm/Storage.o
    calcLiveWords: [R]: exported from:
        ./rts/dist/build/sm/Storage.o
Signed-off-by: default avatarSergei Trofimovich <siarheit@google.com>
parent 66fa0ed7
......@@ -1204,32 +1204,6 @@ W_ gcThreadLiveBlocks (nat i, nat g)
return blocks;
}
// Return an accurate count of the live data in the heap, excluding
// generation 0.
W_ calcLiveWords (void)
{
nat g;
W_ live;
live = 0;
for (g = 0; g < RtsFlags.GcFlags.generations; g++) {
live += genLiveWords(&generations[g]);
}
return live;
}
W_ calcLiveBlocks (void)
{
nat g;
W_ live;
live = 0;
for (g = 0; g < RtsFlags.GcFlags.generations; g++) {
live += genLiveBlocks(&generations[g]);
}
return live;
}
/* Determine which generation will be collected next, and approximate
* the maximum amount of memory that will be required to do the GC,
* taking into account data that will be copied, and the space needed
......
......@@ -124,9 +124,6 @@ W_ gcThreadLiveBlocks (nat i, nat g);
W_ genLiveWords (generation *gen);
W_ genLiveBlocks (generation *gen);
W_ calcLiveBlocks (void);
W_ calcLiveWords (void);
/* ----------------------------------------------------------------------------
Storage manager internal APIs and globals
------------------------------------------------------------------------- */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment