mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
Kernel: Exclude userspace heap memory from coredumps by default
When a process with a large heap crashes (e.g WebContent), it gets very cumbersome to dump out a huge amount of memory. In the vast majority of cases, we're only interested in generating a nice backtrace from the coredump, so let's have the kernel skip over userspace heap regions when dumping memory for now. This is not ideal, and almost a little bit ugly, but it does make investigating 500 MiB WebContent crashes significantly easier for now.
This commit is contained in:
parent
94d0562569
commit
eeb4f2fa9b
2 changed files with 34 additions and 3 deletions
|
@ -37,7 +37,7 @@ private:
|
|||
|
||||
NonnullRefPtr<Process> m_process;
|
||||
NonnullRefPtr<OpenFileDescription> m_description;
|
||||
const size_t m_num_program_headers;
|
||||
size_t m_num_program_headers { 0 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue