summaryrefslogtreecommitdiff
path: root/Kernel/init.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-12-26 22:02:24 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-12-26 22:02:24 +0100
commit3f3535213b8b8acbe1c372b14b743bf9a1c40d71 (patch)
tree4009a5e638c8504f7a9ebf3e27a7f2d85a7b4159 /Kernel/init.cpp
parentf6179ad9f9ba0277fe5f0767cb0985388bf1ee20 (diff)
downloadserenity-3f3535213b8b8acbe1c372b14b743bf9a1c40d71.zip
Fix some issues uncovered by the spawn stress test.
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r--Kernel/init.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp
index 96b8d7f407..61a979c5b9 100644
--- a/Kernel/init.cpp
+++ b/Kernel/init.cpp
@@ -36,14 +36,13 @@ Keyboard* keyboard;
static void spawn_stress() NORETURN;
static void spawn_stress()
{
- dword lastAlloc = sum_alloc;
+ dword last_sum_alloc = sum_alloc;
for (unsigned i = 0; i < 10000; ++i) {
int error;
Process::create_user_process("/bin/true", (uid_t)100, (gid_t)100, (pid_t)0, error, Vector<String>(), Vector<String>(), tty0);
- kprintf("malloc stats: alloc:%u free:%u eternal:%u ", sum_alloc, sum_free, kmalloc_sum_eternal);
- kprintf("delta:%u\n", sum_alloc - lastAlloc);
- lastAlloc = sum_alloc;
+ dbgprintf("malloc stats: alloc:%u free:%u eternal:%u !delta:%u\n", sum_alloc, sum_free, kmalloc_sum_eternal, sum_alloc - last_sum_alloc);
+ last_sum_alloc = sum_alloc;
sleep(60);
}
for (;;) {