diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-12-26 21:31:46 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-12-26 21:47:15 +0100 |
commit | f6179ad9f9ba0277fe5f0767cb0985388bf1ee20 (patch) | |
tree | a2526b71c855f3d282fbc98eb1f7566bce1ad002 /Kernel/ProcFileSystem.cpp | |
parent | 55c722096da724ba93f0a2c5e1f4cb1f59cf9f0e (diff) | |
download | serenity-f6179ad9f9ba0277fe5f0767cb0985388bf1ee20.zip |
Add slightly better kmalloc_aligned() and kfree_aligned().
Process page directories can now actually be freed. This could definitely
be implemented in a nicer, less wasteful way, but this works for now.
The spawn stress test can now run for a lot longer but eventually dies
due to kmalloc running out of memory.
Diffstat (limited to 'Kernel/ProcFileSystem.cpp')
-rw-r--r-- | Kernel/ProcFileSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/ProcFileSystem.cpp b/Kernel/ProcFileSystem.cpp index 75c2c6c048..8a5170b526 100644 --- a/Kernel/ProcFileSystem.cpp +++ b/Kernel/ProcFileSystem.cpp @@ -318,7 +318,7 @@ ByteBuffer procfs$kmalloc() { auto buffer = ByteBuffer::create_uninitialized(256); char* ptr = (char*)buffer.pointer(); - ptr += ksprintf(ptr, "eternal: %u\npage-aligned: %u\nallocated: %u\nfree: %u\n", kmalloc_sum_eternal, sum_alloc, sum_free); + ptr += ksprintf(ptr, "eternal: %u\nallocated: %u\nfree: %u\n", kmalloc_sum_eternal, sum_alloc, sum_free); buffer.trim(ptr - (char*)buffer.pointer()); return buffer; } |