summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2008-11-14 16:16:02 +0100
committerNeal H. Walfield <neal@gnu.org>2008-11-14 16:16:02 +0100
commit9b528780bb5d07747b6b6953e939366caec56028 (patch)
tree0c81a9bccd53202333511f842e40b153eb6557ef
parent0fafa9acc16eebd2b08b31be286797a59c2b260a (diff)
Take frames from the head of the available list.
2008-11-14 Neal H. Walfield <neal@gnu.org> * memory.c (memory_frame_allocate): Take frames from the head of the available list.
-rw-r--r--viengoos/ChangeLog5
-rw-r--r--viengoos/memory.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/viengoos/ChangeLog b/viengoos/ChangeLog
index b315dd5..3892745 100644
--- a/viengoos/ChangeLog
+++ b/viengoos/ChangeLog
@@ -1,5 +1,10 @@
2008-11-14 Neal H. Walfield <neal@gnu.org>
+ * memory.c (memory_frame_allocate): Take frames from the head of
+ the available list.
+
+2008-11-14 Neal H. Walfield <neal@gnu.org>
+
* activity.c (activity_destroy): Dump the current statistics
whenever an activity is destroyed.
diff --git a/viengoos/memory.c b/viengoos/memory.c
index 1c9d60f..3f46ff4 100644
--- a/viengoos/memory.c
+++ b/viengoos/memory.c
@@ -364,7 +364,7 @@ memory_frame_allocate (struct activity *activity)
/* XXX: We avoid objects that require special treatment.
Realize this special treatment. */
- struct object_desc *desc = available_list_tail (&available);
+ struct object_desc *desc = available_list_head (&available);
while (desc)
{
if (desc->type != cap_activity_control
@@ -373,7 +373,7 @@ memory_frame_allocate (struct activity *activity)
memory_object_destroy. */
break;
- desc = available_list_prev (desc);
+ desc = available_list_next (desc);
}
if (desc)