summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorivmai <ivmai>2011-04-03 21:29:08 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:57 +0200
commit2f9f31a6feb731f07aecebbb31c592f7eb7e35f5 (patch)
treeca7932d5996f5bd1a4cfbc8fa67ec9a0594185bb /doc
parent2dd6fcb8eb83cebc86640afbbdacacff5e45a6b3 (diff)
2011-04-03 Ivan Maidanski <ivmai@mail.ru>
* misc.c (GC_stdout, GC_stderr): Move the definition to the place where GC_log is defined (Unix only). * misc.c (GC_init): Recognize "GC_ONLY_LOG_TO_FILE" environment variable and the similar macro; redirect GC_stdout and GC_stderr to GC_log if "GC_LOG_FILE" environment variable is set unless prohibited by GC_ONLY_LOG_TO_FILE (Unix only). * doc/README.environment (GC_ONLY_LOG_TO_FILE): Document. * doc/README.macros (GC_ONLY_LOG_TO_FILE): Ditto.
Diffstat (limited to 'doc')
-rw-r--r--doc/README.environment4
-rw-r--r--doc/README.macros4
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/README.environment b/doc/README.environment
index 07a4ebf..ef7c7cb 100644
--- a/doc/README.environment
+++ b/doc/README.environment
@@ -20,6 +20,10 @@ GC_PRINT_STATS - Turn on GC logging. Not functional with SMALL_CONFIG.
GC_LOG_FILE - The name of the log file. Stderr by default. Not functional
with SMALL_CONFIG.
+GC_ONLY_LOG_TO_FILE - Turns off redirection of GC stdout and stderr to the log
+ file specified by GC_LOG_FILE. Has no effect unless
+ GC_LOG_FILE is set. Not functional with SMALL_CONFIG.
+
GC_PRINT_VERBOSE_STATS - Turn on even more logging. Not functional with
SMALL_CONFIG.
diff --git a/doc/README.macros b/doc/README.macros
index ac78897..50eab28 100644
--- a/doc/README.macros
+++ b/doc/README.macros
@@ -502,6 +502,10 @@ GC_IGNORE_GCJ_INFO Disable GCJ-style type information (useful for
GC_PRINT_VERBOSE_STATS Permanently turn on verbose logging (useful for
debugging and profiling on WinCE).
+GC_ONLY_LOG_TO_FILE Don't redirect GC stdout and stderr to the log file
+ specified by GC_LOG_FILE environment variable. Has effect only when the
+ variable is set (to anything other than "0").
+
GC_DONT_EXPAND Don't expand the heap unless explicitly requested or forced to.
GC_USE_ENTIRE_HEAP Causes the non-incremental collector to use the