diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-05-06 20:20:35 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-05-06 20:20:32 +0300 |
commit | 8fc2bdff2f5a223c35e1c53704188264d8f58e14 (patch) | |
tree | ebdc935a8a73cf9bcca4aaf59736ea2f562943e3 /tests | |
parent | 0af811158fc2887c81f47deeb730b358368e6813 (diff) | |
download | bdwgc-8fc2bdff2f5a223c35e1c53704188264d8f58e14.tar.gz |
Change default value of max_prior_attempts to 3
* alloc.c [!MAX_PRIOR_ATTEMPTS] (MAX_PRIOR_ATTEMPTS): Change value
from 1 to 3.
* tests/gctest.c [GC_PTHREADS] (main): Pass GC_get_max_prior_attempts()
as an argument to GC_set_max_prior_attempts() (instead of 1); do not
fail if result of GC_get_max_prior_attempts() is not 1.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gctest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gctest.c b/tests/gctest.c index f06ec6e2..2b706a45 100644 --- a/tests/gctest.c +++ b/tests/gctest.c @@ -2424,8 +2424,8 @@ int main(void) if (GC_get_min_bytes_allocd() != 1) FAIL; GC_set_rate(10); - GC_set_max_prior_attempts(1); - if (GC_get_rate() != 10 || GC_get_max_prior_attempts() != 1) + GC_set_max_prior_attempts(GC_get_max_prior_attempts()); + if (GC_get_rate() != 10) FAIL; GC_set_warn_proc(warn_proc); if ((code = pthread_key_create(&fl_key, 0)) != 0) { |