From: Otto Moerbeek Date: Fri, 4 Jan 2019 13:17:57 +0000 (+0100) Subject: Merge branch 'usemmapforstack' of github.com:omoerbeek/pdns into usemmapforstack X-Git-Tag: rec-4.2.0-alpha1~62^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=70a29b7d0285c3ab4353888217e67d91c483ce7c;p=thirdparty%2Fpdns.git Merge branch 'usemmapforstack' of github.com:omoerbeek/pdns into usemmapforstack --- 70a29b7d0285c3ab4353888217e67d91c483ce7c diff --cc pdns/lazy_allocator.hh index 629981c2cd,629981c2cd..4851687ba6 --- a/pdns/lazy_allocator.hh +++ b/pdns/lazy_allocator.hh @@@ -43,7 -43,7 +43,7 @@@ struct lazy_allocator pointer allocate (size_type const n) { -- void *p = mmap(NULL, n * sizeof(value_type), ++ void *p = mmap(nullptr, n * sizeof(value_type), PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_STACK, -1, 0); if (p == MAP_FAILED) throw std::bad_alloc();