Skip to content

Commit eacde47

Browse files
atn34alexmiller-apple
authored andcommitted
Disable setMemoryQuota for ASAN
1 parent e3400c1 commit eacde47

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flow/Platform.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,6 +1391,10 @@ void getLocalTime(const time_t *timep, struct tm *result) {
13911391
}
13921392

13931393
void setMemoryQuota( size_t limit ) {
1394+
#if defined(USE_ASAN)
1395+
// ASAN doesn't work with memory quotas: https://github.com/google/sanitizers/wiki/AddressSanitizer#ulimit--v
1396+
return;
1397+
#endif
13941398
INJECT_FAULT( platform_error, "setMemoryQuota" );
13951399
#if defined(_WIN32)
13961400
HANDLE job = CreateJobObject( NULL, NULL );

0 commit comments

Comments
 (0)