summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorivmai <ivmai>2011-02-12 16:02:35 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:56 +0200
commit9f4d913809d364b29458b03e20e85c05885ab6f9 (patch)
tree90cc81c357c90f22ef8de96aadd2f689e98817e2 /tests
parentab10b1e07044799d692c313031aa65db5a76c593 (diff)
2011-02-10 Ivan Maidanski <ivmai@mail.ru>
* NT_MAKEFILE: Define _CRT_SECURE_NO_DEPRECATE for C++ files as well. * NT_STATIC_THREADS_MAKEFILE: Ditto. * doc/README.macros (USE_GET_STACKBASE_FOR_MAIN): Refine. * include/gc.h (GC_INIT): Document. * include/private/gc_priv.h (GC_MACH_HEADER, GC_MACH_SECTION, GC_GETSECTBYNAME): Define depending only on the word size (i.e., define these macros also for ARM). * tests/test.c (check_heap_stats): Print main thread stack bottom as well (only if verbose mode is on).
Diffstat (limited to 'tests')
-rw-r--r--tests/test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test.c b/tests/test.c
index 1181670..d8cf4f6 100644
--- a/tests/test.c
+++ b/tests/test.c
@@ -1284,6 +1284,10 @@ void check_heap_stats(void)
# endif
GC_invoke_finalizers();
}
+ if (GC_print_stats) {
+ GC_log_printf("Primordial thread stack bottom: %p\n",
+ GC_stackbottom);
+ }
(void)GC_printf("Completed %u tests\n", n_tests);
(void)GC_printf("Allocated %d collectable objects\n", collectable_count);
(void)GC_printf("Allocated %d uncollectable objects\n",