mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Make the kmalloc global stats variable volatile.
I know I'm praying for cargo here, but this does fix a weird issue where logging the sum_alloc and sum_free globals wouldn't display symmetric values all the time.
This commit is contained in:
parent
82dae8fc90
commit
a5caf7ca99
Notes:
sideshowbarker
2024-07-19 18:39:37 +09:00
Author: https://github.com/awesomekling
Commit: a5caf7ca99
3 changed files with 15 additions and 4 deletions
|
@ -497,6 +497,17 @@ bool scheduleNewTask()
|
|||
|
||||
if (task == prevHead) {
|
||||
// Back at task_head, nothing wants to run.
|
||||
kprintf("Nothing wants to run!\n");
|
||||
kprintf("PID OWNER STATE NSCHED NAME\n");
|
||||
for (auto* task = s_tasks->head(); task; task = task->next()) {
|
||||
kprintf("%w %w:%w %b %w %s\n",
|
||||
task->pid(),
|
||||
task->uid(),
|
||||
task->gid(),
|
||||
task->state(),
|
||||
task->timesScheduled(),
|
||||
task->name().characters());
|
||||
}
|
||||
kprintf("Switch to kernel task\n");
|
||||
return contextSwitch(Task::kernelTask());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue