aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2021-03-29 11:37:38 +0000
committerTatsuya Kinoshita <tats@debian.org>2021-03-29 11:37:38 +0000
commit47a2a5514b67c0c6a7650368cf8908fa5003aa9f (patch)
tree6169c63ddded40e60bee829fc9d4078150f117c2
parentUpdate ChangeLog (diff)
downloadw3m-47a2a5514b67c0c6a7650368cf8908fa5003aa9f.tar.gz
w3m-47a2a5514b67c0c6a7650368cf8908fa5003aa9f.zip
Prevent GC warnings of repeated allocation
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746701 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832407 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862382
Diffstat (limited to '')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 5d2904e..d4230c5 100644
--- a/main.c
+++ b/main.c
@@ -424,6 +424,8 @@ main(int argc, char **argv, char **envp)
#if defined(DONT_CALL_GC_AFTER_FORK) && defined(USE_IMAGE)
char **getimage_args = NULL;
#endif /* defined(DONT_CALL_GC_AFTER_FORK) && defined(USE_IMAGE) */
+ if (!getenv("GC_LARGE_ALLOC_WARN_INTERVAL"))
+ set_environ("GC_LARGE_ALLOC_WARN_INTERVAL", "30000");
GC_INIT();
#if (GC_VERSION_MAJOR>7) || ((GC_VERSION_MAJOR==7) && (GC_VERSION_MINOR>=2))
GC_set_oom_fn(die_oom);