Skip to content

Commit bb8ab01

Browse files
committed
RTS: merge back PRINT_GCSTATS and GCSTATS switches
fix #241
1 parent dd4b6d7 commit bb8ab01

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

gibbon-rts/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ ifeq ($(GCSTATS), 1)
6161
RSFLAGS += --features=gcstats
6262
endif
6363

64-
ifeq ($(PRINT_GCSTATS), 1)
65-
CFLAGS += -D_GIBBON_PRINT_GCSTATS
66-
endif
67-
6864
ifeq ($(POINTER), 1)
6965
CFLAGS += -D_GIBBON_POINTER
7066
endif

gibbon-rts/rts-c/gibbon_rts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2027,7 +2027,7 @@ int gib_exit(void)
20272027
GibShadowstack *wstack = DEFAULT_WRITE_SHADOWSTACK;
20282028
GibOldgen *oldgen = DEFAULT_GENERATION;
20292029

2030-
#ifdef _GIBBON_PRINT_GCSTATS
2030+
#ifdef _GIBBON_GCSTATS
20312031
// Print GC statistics.
20322032
gib_gc_stats_print(GC_STATS);
20332033
#endif

gibbon-rts/rts-c/gibbon_rts.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
*
1717
* _GIBBON_VERBOSITY=int verbosity level for debug output
1818
* _GIBBON_DEBUG enables various assertions if present
19-
* _GIBBON_GCSTATS collect GC statistics if present
20-
* _GIBBON_PRINT_GCSTATS print GC statistics if present
19+
* _GIBBON_GCSTATS collect and print GC statistics if present
2120
* _GIBBON_GENGC only use old reference counted GC set to 0
2221
* _GIBBON_BOUNDSCHECK boundscheck vector accesses
2322
* _GIBBON_BUMPALLOC_LISTS bump allocated linked lists

0 commit comments

Comments
 (0)