From bf96cfdcbeee173c464fa91d6a0b2569fbe17d9e Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 15 Feb 2010 22:19:49 +0000 Subject: [PATCH] Added TODO regarding the non-swappability of the initial port heap area. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35484 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/port.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/system/kernel/port.cpp b/src/system/kernel/port.cpp index 3c5253b0e1..c67fb88224 100644 --- a/src/system/kernel/port.cpp +++ b/src/system/kernel/port.cpp @@ -664,6 +664,10 @@ port_init(kernel_args *args) if (create_area("port heap", (void**)&base, B_ANY_KERNEL_ADDRESS, kInitialPortBufferSize, B_NO_LOCK, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA) < 0) { + // TODO: Since port_init() is invoked before the boot partition is + // mounted, the underlying VMAnonymousCache cannot commit swap space + // upon creation and thus the pages aren't swappable after all. This + // makes the area essentially B_LAZY_LOCK with additional overhead. panic("unable to allocate port area!\n"); return B_ERROR; }