[haiku-commits] r35484 - haiku/trunk/src/system/kernel

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 15 Feb 2010 23:19:49 +0100 (CET)

Author: bonefish
Date: 2010-02-15 23:19:49 +0100 (Mon, 15 Feb 2010)
New Revision: 35484
Changeset: http://dev.haiku-os.org/changeset/35484/haiku

Modified:
   haiku/trunk/src/system/kernel/port.cpp
Log:
Added TODO regarding the non-swappability of the initial port heap area.


Modified: haiku/trunk/src/system/kernel/port.cpp
===================================================================
--- haiku/trunk/src/system/kernel/port.cpp      2010-02-15 22:18:39 UTC (rev 
35483)
+++ haiku/trunk/src/system/kernel/port.cpp      2010-02-15 22:19:49 UTC (rev 
35484)
@@ -664,6 +664,10 @@
        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;
        }


Other related posts:

  • » [haiku-commits] r35484 - haiku/trunk/src/system/kernel - ingo_weinhold