diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2017-10-25 11:45:38 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2017-10-25 11:45:38 +0300 |
commit | ff55290a3bcab7f9763d74214c03a7b65646f990 (patch) | |
tree | 79f681b0e484d1ec872fbe43a843c26044daac79 /doc | |
parent | 9d231fb884f33df6c285bd6c43671c13d2b26826 (diff) | |
download | bdwgc-ff55290a3bcab7f9763d74214c03a7b65646f990.tar.gz |
Do not use system clock consistently if NO_CLOCK
Issue #139 (bdwgc).
* alloc.c (GC_try_to_collect_inner, world_stopped_total_time,
world_stopped_total_divisor, MAX_TOTAL_TIME_DIVISOR, GC_stopped_mark):
Replace "ifndef SMALL_CONFIG" with "ifndef NO_CLOCK".
* reclaim.c (GC_reclaim_all): Likewise.
* alloc.c (GC_finish_collection): Replace "ifndef SMALL_CONFIG" with
"ifndef NO_CLOCK" except for GC_print_finalization_stats invocation.
* doc/README.macros (NO_CLOCK): Document.
* include/private/gc_priv.h (CLOCK_TYPE, GET_TIME, MS_TIME_DIFF): Do
not define if NO_CLOCK.
* include/private/gc_priv.h (GC_print_stats): Define as a macro (to 0)
only if both NO_CLOCK and SMALL_CONFIG are defined.
* misc.c (GC_print_stats): Do not define if both NO_CLOCK and
SMALL_CONFIG are defined.
* misc.c (GC_init): Do not set GC_print_stats only if both NO_CLOCK
and SMALL_CONFIG are defined.
* tests/test.c (run_one_test): Do not define start_time, reverse_time,
time_diff local variables (and do not use GET_TIME, MS_TIME_DIFF) if
NO_CLOCK is defined.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/README.macros | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/README.macros b/doc/README.macros index 191537fe..3e9f1798 100644 --- a/doc/README.macros +++ b/doc/README.macros @@ -179,6 +179,8 @@ SMALL_CONFIG Tries to tune the collector for small heap sizes, statistic-printing code. Turns off some optimization algorithms (like data prefetching in the mark routine). +NO_CLOCK Do not use system clock. Disables some statistic printing. + GC_DISABLE_INCREMENTAL Turn off the incremental collection support. NO_INCREMENTAL Causes the gctest program to not invoke the incremental |