summaryrefslogtreecommitdiff
path: root/coreconf/config.gypi
diff options
context:
space:
mode:
authorRobert Relyea <rrelyea@redhat.com>2020-04-18 17:11:20 -0700
committerRobert Relyea <rrelyea@redhat.com>2020-04-18 17:11:20 -0700
commit1341c7c22ce500a11d92350131baa5f28dc1390d (patch)
tree124265908646edde56da5f6bc37bd1646c96ebe3 /coreconf/config.gypi
parent4d1581bb5839991012507f409e02d72857591bc7 (diff)
downloadnss-hg-1341c7c22ce500a11d92350131baa5f28dc1390d.tar.gz
Bug 1603801 [patch] Avoid dcache pollution from sdb_measureAccess() r=mt
As implemented, when sdb_measureAccess() runs it creates up to 10,000 negative dcache entries (cached nonexistent filenames). There is no advantage to leaving these particular filenames in the cache; they will never be searched again. Subsequent runs will run a new test with an intentionally different set of filenames. This can have detrimental effects on some systems; a massive negative dcache can lead to memory or performance problems. Since not all platforms have a problem with negative dcache entries, this patch is limitted to those platforms that request it at compilie time (Linux is current the only patch that does.) Differential Revision: https://phabricator.services.mozilla.com/D59652
Diffstat (limited to 'coreconf/config.gypi')
-rw-r--r--coreconf/config.gypi1
1 files changed, 1 insertions, 0 deletions
diff --git a/coreconf/config.gypi b/coreconf/config.gypi
index 6459bccc9..d18875965 100644
--- a/coreconf/config.gypi
+++ b/coreconf/config.gypi
@@ -362,6 +362,7 @@
'_DEFAULT_SOURCE', # for <endian.h> functions, strdup, realpath, and getentropy
'_BSD_SOURCE', # for the above in glibc <= 2.19
'_POSIX_SOURCE', # for <signal.h>
+ 'SQL_MEASURE_USE_TEMP_DIR', # use tmpdir for the access calls
],
}],
[ 'OS=="dragonfly" or OS=="freebsd"', {