summaryrefslogtreecommitdiff
path: root/pthread_stop_world.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-05-06 19:47:07 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-05-06 20:18:26 +0300
commit1554bdb6bd59f09d5c3f3d23fdd62eaa54d83654 (patch)
tree1900de3de1016a59f21341047dd6342b55698fda /pthread_stop_world.c
parent645217b389159013b2407b29641efbcb1a588483 (diff)
downloadbdwgc-1554bdb6bd59f09d5c3f3d23fdd62eaa54d83654.tar.gz
Change default GC_time_limit value from 50 to 15 ms
* alloc.c [(!GC_TIME_LIMIT || CPPCHECK) && !PARALLEL_MARK] (GC_time_limit): Change value from 50 to 15. * pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL && GC_ENABLE_SUSPEND_THREAD && (!GC_TIME_LIMIT || CPPCHECK)] (GC_brief_async_signal_safe_sleep): Likewise. * doc/gcdescr.md (Generational Collection and Dirty Bits): Change the default value of predetermined amount of time from 50 ms to 15 ms.
Diffstat (limited to 'pthread_stop_world.c')
-rw-r--r--pthread_stop_world.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_stop_world.c b/pthread_stop_world.c
index 23fa170b..4f7a9c78 100644
--- a/pthread_stop_world.c
+++ b/pthread_stop_world.c
@@ -607,7 +607,7 @@ STATIC void GC_restart_handler(int sig)
# if defined(GC_TIME_LIMIT) && !defined(CPPCHECK)
tv.tv_usec = 1000 * GC_TIME_LIMIT / 2;
# else
- tv.tv_usec = 1000 * 50 / 2;
+ tv.tv_usec = 1000 * 15 / 2;
# endif
(void)select(0, 0, 0, 0, &tv);
}