diff options
author | Pauli <paul.dale@oracle.com> | 2019-11-22 23:04:38 +0100 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-11-24 12:54:34 +0100 |
commit | e5ecfcc788c8d3e6cbb96bc68b5498be8198f9f5 (patch) | |
tree | 30180517708590e12d5f58592663f61812d09f62 /crypto/property | |
parent | Remove RANDFILE settings from configuration files (diff) | |
download | openssl-e5ecfcc788c8d3e6cbb96bc68b5498be8198f9f5.tar.xz openssl-e5ecfcc788c8d3e6cbb96bc68b5498be8198f9f5.zip |
Property: fix intermittent test failure.
The reduction in the cache flush threshold in #10408 caused the stochastic test
to fail with noticeable probability. Revert that part of the change.
Also add a comment to help avoid this in future.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10505)
Diffstat (limited to 'crypto/property')
-rw-r--r-- | crypto/property/property.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crypto/property/property.c b/crypto/property/property.c index 20d1a75856..33e7469351 100644 --- a/crypto/property/property.c +++ b/crypto/property/property.c @@ -21,8 +21,12 @@ #include "crypto/sparse_array.h" #include "property_local.h" -/* The number of elements in the query cache before we initiate a flush */ -#define IMPL_CACHE_FLUSH_THRESHOLD 50 +/* + * The number of elements in the query cache before we initiate a flush. + * If reducing this, also ensure the stochastic test in test/property_test.c + * isn't likely to fail. + */ +#define IMPL_CACHE_FLUSH_THRESHOLD 500 typedef struct { void *method; |