aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2013-02-01 09:39:08 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2013-02-01 09:39:08 +0700
commit3c33204a2d2614be4a3f9e17fc57537246864093 (patch)
treeae492e9dd454c601aabeec2900e46fd6e105b944 /tests/runner.py
parent7740bad81fffe0f6029bf8dae91fbca5cbadf673 (diff)
Support GC_get_heap_size().
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 28675e9b..d0e641e6 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -7942,8 +7942,12 @@ def process(filename):
// This should never trigger since local5 is uncollectable
GC_REGISTER_FINALIZER_NO_ORDER(local5, finalizer, (void*)5, 0, 0);
+ printf("heap size = %d\n", GC_get_heap_size());
+
local4 = GC_REALLOC(local4, 24);
+ printf("heap size = %d\n", GC_get_heap_size());
+
local6 = GC_MALLOC(12);
GC_REGISTER_FINALIZER_NO_ORDER(local6, finalizer, (void*)6, 0, 0);
// This should be the same as a free
@@ -7984,6 +7988,8 @@ finalizing2 2 (global == 0)
finalizing2 3 (global == 0)
*
finalizing 0 (global == 1)
+heap size = 72
+heap size = 84
finalizing 6 (global == 0)
object scan test test
finalizing 4 (global == 0)