diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-04-20 16:19:32 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-04-20 16:19:34 +0200 |
commit | 5dfd908cfae5f0c36e02c34d8697e2ed44b86bb6 (patch) | |
tree | 6d8f7454116ebf283b2bccd3b9e626d375108d45 /tests/slow | |
parent | 7cf782bf02d2749490f98355f53bf82762f90798 (diff) | |
download | gnutls-5dfd908cfae5f0c36e02c34d8697e2ed44b86bb6.tar.gz |
tests: hash-large: use private mmap()
This reduces the memory usage of the test significantly on Linux.
Diffstat (limited to 'tests/slow')
-rw-r--r-- | tests/slow/hash-large.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/slow/hash-large.c b/tests/slow/hash-large.c index 96ebd53765..3a563b781a 100644 --- a/tests/slow/hash-large.c +++ b/tests/slow/hash-large.c @@ -41,7 +41,7 @@ static size_t _mmap_size; static void *get_mem(size_t size) { _mmap_size = size; - return mmap(NULL, size, PROT_READ, MAP_SHARED|MAP_ANONYMOUS, -1, 0); + return mmap(NULL, size, PROT_READ, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); } static void put_mem(void *mem) |