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
This commit is contained in:
Ingo Weinhold 2010-02-15 22:19:49 +00:00
parent 3795172c67
commit bf96cfdcbe
1 changed files with 4 additions and 0 deletions

View File

@ -664,6 +664,10 @@ port_init(kernel_args *args)
if (create_area("port heap", (void**)&base, B_ANY_KERNEL_ADDRESS, if (create_area("port heap", (void**)&base, B_ANY_KERNEL_ADDRESS,
kInitialPortBufferSize, B_NO_LOCK, kInitialPortBufferSize, B_NO_LOCK,
B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA) < 0) { 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"); panic("unable to allocate port area!\n");
return B_ERROR; return B_ERROR;
} }