summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/CodeGen/StackMaps.cpp
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-12-24 12:58:33 +0000
committerngie <ngie@FreeBSD.org>2016-12-24 12:58:33 +0000
commit29cf69d0fdeacdd9809208786e6ed1ab3c4f0ecb (patch)
tree4473bb42be74a080ac4664af82a9a2fe302e6b71 /contrib/llvm/lib/CodeGen/StackMaps.cpp
parent7b08136c1699729ff75fc4b6ae32bede6588dc12 (diff)
downloadFreeBSD-src-29cf69d0fdeacdd9809208786e6ed1ab3c4f0ecb.zip
FreeBSD-src-29cf69d0fdeacdd9809208786e6ed1ab3c4f0ecb.tar.gz
MFC r309837:
Change the process limits for RLIMIT_MEMLOCK to RLIM_INFINITY when executing :mincore_resid The default process limits in FreeBSD is 64kB for unprivileged users, which empirically is too low to run the :mincore_resid testcase. Process limits are inherited, so even though the default limit for root users is RLIM_INFINITY, the inherited limit with "sudo" with the default login.conf will be 64kB. Use setrlimit to set rlim_max for RLIMIT_MEMLOCK to RLIM_INFINITY to avoid ENOMEM issues when calling mlock to wire the mmap'ed address space. setrlimit requires root access to increase rlim_max, so require root privileges when running the test Discovered when executing the tests with sudo, e.g. "sudo kyua test -k /usr/tests/lib/libc/sys/Kyuafile mincore_test"
Diffstat (limited to 'contrib/llvm/lib/CodeGen/StackMaps.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud