From 5eedb2283488fafef98c20729bc6917c6de957e5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 20 Apr 2019 14:02:19 +0200 Subject: Sprinkle use of AK::Vector in various places. Some of these are less helpful than others. Avoiding a bunch of mallocs in the event loop wakeup code is definitely nice. --- Kernel/Process.cpp | 2 +- Kernel/Thread.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Kernel') diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 7390085369..af7716c0bd 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -2276,7 +2276,7 @@ void SharedBuffer::destroy_if_unused() void Process::disown_all_shared_buffers() { LOCKER(shared_buffers().lock()); - Vector buffers_to_disown; + Vector buffers_to_disown; for (auto& it : shared_buffers().resource()) buffers_to_disown.append(it.value.ptr()); for (auto* shared_buffer : buffers_to_disown) diff --git a/Kernel/Thread.cpp b/Kernel/Thread.cpp index c052d4aaab..ebd43a23b4 100644 --- a/Kernel/Thread.cpp +++ b/Kernel/Thread.cpp @@ -167,7 +167,7 @@ void Thread::finalize() void Thread::finalize_dying_threads() { - Vector dying_threads; + Vector dying_threads; { InterruptDisabler disabler; for_each_in_state(Thread::State::Dying, [&] (Thread& thread) { -- cgit v1.2.3