Open Bug 1633667 Opened 4 years ago Updated 2 years ago

Flag amenable shared-memory allocations so that we can detect OOM crashes

Categories

(Core :: Graphics, enhancement, P3)

Unspecified
Linux
enhancement

Tracking

()

People

(Reporter: gsvelto, Unassigned)

References

Details

Some of our shmem uses immediately fill up the buffer that they allocated which - in case of low memory situations - will trigger a SIGBUS signal. If we flag these allocation sites with AnnotateOOMAllocationSize() we should be able to categorize those crashes as OOM and also detect how much memory we're allocating.

For example we could call AnnotateOOMAllocationSize() here to record bufSize and then clear it to 0 here and here.

This would correctly detect most crashes in bug 1631680 as OOMs.

Priority: -- → P3
Severity: -- → normal
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.