diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2023-04-07 08:15:37 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2023-04-07 13:16:24 +0300 |
commit | b6a813b79253862a2f0a01de8cc45740acbb00b5 (patch) | |
tree | 4050f4da8468b41681fc9f4f73d6a8fca2218dbc /pthread_stop_world.c | |
parent | 6dfd81e1a070b4ab44f7edb32e05538d22c8ca9f (diff) | |
download | bdwgc-b6a813b79253862a2f0a01de8cc45740acbb00b5.tar.gz |
Reduce probability of simulated signal loss in raise_signal
(fix of commit 25e56a4d5)
This is to speedup gctest if compiled with -D SIMULATE_LOST_SIGNALS.
* pthread_stop_world.c [!NACL && SIMULATE_LOST_SIGNALS
&& !GC_ENABLE_SUSPEND_THREAD && !LOST_SIGNALS_RATIO]
(LOST_SIGNALS_RATIO): Change value from 5 to 25.
Diffstat (limited to 'pthread_stop_world.c')
-rw-r--r-- | pthread_stop_world.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_stop_world.c b/pthread_stop_world.c index 0c0c7b53..16216ecb 100644 --- a/pthread_stop_world.c +++ b/pthread_stop_world.c @@ -568,7 +568,7 @@ STATIC void GC_restart_handler(int sig) # endif # if defined(SIMULATE_LOST_SIGNALS) && !defined(GC_ENABLE_SUSPEND_THREAD) # ifndef LOST_SIGNALS_RATIO -# define LOST_SIGNALS_RATIO 5 +# define LOST_SIGNALS_RATIO 25 # endif static int signal_cnt; /* race is OK, it is for test purpose only */ |