Loading media/libmedia/MediaUtils.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,11 @@ void limitProcessMemory( size_t numberOfBytes, size_t percentageOfTotalMem) { if (running_with_asan()) { ALOGW("Running with ASan, skip enforcing memory limitations."); return; } long pageSize = sysconf(_SC_PAGESIZE); long numPages = sysconf(_SC_PHYS_PAGES); size_t maxMem = SIZE_MAX; Loading media/libmedia/MediaUtils.h +6 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,12 @@ namespace android { extern "C" void __asan_init(void) __attribute__((weak)); static inline int running_with_asan() { return &__asan_init != 0; } /** Limit the amount of memory a process can allocate using setrlimit(RLIMIT_AS). The value to use will be read from the specified system property, or if the Loading Loading
media/libmedia/MediaUtils.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,11 @@ void limitProcessMemory( size_t numberOfBytes, size_t percentageOfTotalMem) { if (running_with_asan()) { ALOGW("Running with ASan, skip enforcing memory limitations."); return; } long pageSize = sysconf(_SC_PAGESIZE); long numPages = sysconf(_SC_PHYS_PAGES); size_t maxMem = SIZE_MAX; Loading
media/libmedia/MediaUtils.h +6 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,12 @@ namespace android { extern "C" void __asan_init(void) __attribute__((weak)); static inline int running_with_asan() { return &__asan_init != 0; } /** Limit the amount of memory a process can allocate using setrlimit(RLIMIT_AS). The value to use will be read from the specified system property, or if the Loading