disable rlimit when ASAN is used

This commit is contained in:
mpilman 2019-01-30 17:10:25 -08:00
parent 6afce01744
commit 1df3d8f0c7
1 changed files with 1 additions and 1 deletions

View File

@ -1410,7 +1410,7 @@ void setMemoryQuota( size_t limit ) {
}
if (!AssignProcessToJobObject( job, GetCurrentProcess() ))
TraceEvent(SevWarn, "FailedToSetMemoryLimit").GetLastError();
#elif defined(__linux__)
#elif defined(__linux__) && !defined(USE_ASAN)
struct rlimit rlim;
if (getrlimit(RLIMIT_AS, &rlim)) {
TraceEvent(SevError, "GetMemoryLimit").GetLastError();