mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 10:26:12 +00:00
igt/gem_shrink: Reduce oom spam
Since we are deliberately going to fail the mmap() allocation, don't assert. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
7a977554cb
commit
9cff3be127
@ -202,7 +202,8 @@ static void leak(int fd, uint64_t alloc)
|
|||||||
ptr = mmap(NULL, alloc, PROT_READ | PROT_WRITE,
|
ptr = mmap(NULL, alloc, PROT_READ | PROT_WRITE,
|
||||||
MAP_ANON | MAP_PRIVATE | MAP_POPULATE,
|
MAP_ANON | MAP_PRIVATE | MAP_POPULATE,
|
||||||
-1, 0);
|
-1, 0);
|
||||||
igt_assert(ptr != (char *)-1);
|
if (ptr != (char *)-1)
|
||||||
|
return;
|
||||||
|
|
||||||
while (alloc) {
|
while (alloc) {
|
||||||
alloc -= 4096;
|
alloc -= 4096;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user