diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-30 17:52:02 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-30 17:54:32 +0200 |
commit | eeb4f2fa9bf1b26d7667b3fc3643da9c155c6d1c (patch) | |
tree | fdbfbf9228160ba5043499b931c9241dacb48731 /Kernel/Coredump.h | |
parent | 94d0562569e89e728e0af4cd2c0710ed9e3d4885 (diff) | |
download | serenity-eeb4f2fa9bf1b26d7667b3fc3643da9c155c6d1c.zip |
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.
Diffstat (limited to 'Kernel/Coredump.h')
-rw-r--r-- | Kernel/Coredump.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Coredump.h b/Kernel/Coredump.h index 18076ae024..439f02fbdc 100644 --- a/Kernel/Coredump.h +++ b/Kernel/Coredump.h @@ -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 }; }; } |