From 21fe91e508e0c4600768962d7a5fcd2ec313b593 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 19 Jun 2021 22:07:56 +0300 Subject: [PATCH] v watch: increase the default restart timeout, when vwatch.v is compiled with -gc boehm --- cmd/tools/vwatch.v | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/tools/vwatch.v b/cmd/tools/vwatch.v index 310eb04b8a..9d20b9aa14 100644 --- a/cmd/tools/vwatch.v +++ b/cmd/tools/vwatch.v @@ -18,7 +18,11 @@ const max_scan_cycles = scan_timeout_s * scan_frequency_hz fn get_scan_timeout_seconds() int { env_vw_timeout := os.getenv('VWATCH_TIMEOUT').int() if env_vw_timeout == 0 { - return 5 * 60 + $if gcboehm ? { + return 35000000 // over 1 year + } $else { + return 5 * 60 + } } return env_vw_timeout } @@ -296,6 +300,7 @@ const ccontext = Context{ } fn main() { + dump(scan_timeout_s) mut context := unsafe { &Context(voidptr(&ccontext)) } context.pid = os.getpid() context.vexe = os.getenv('VEXE')