diff options
author | neal <neal> | 2008-01-01 11:58:55 +0000 |
---|---|---|
committer | neal <neal> | 2008-01-01 11:58:55 +0000 |
commit | 91d93820b7d513cfbcc3fe942edfa462d190b66e (patch) | |
tree | cdd7eadd2d7ea6ce876a92f9815aa3beb6641083 /viengoos/object.c | |
parent | 6928cce31996bcfc099221d567d8d9519de16c6d (diff) |
2008-01-01 Neal H. Walfield <neal@gnu.org>
* activity.h (struct activity): Rename field parent to parent_cap.
Rename field children to children_cap. Rename field sibling_next
to sibling_next_cap. Rename field sibling_prev to
sibling_prev_cap. Rename field parent_ptr to parent. Add fields
children, sibling_next and sibling_prev. Rename field frames to
frames_total. Add field frames_local. Update users.
(activity_prepare): New declaration.
(activity_deprepare): Likewise.
(activity_charge): Update ACTIVITY->FRAMES_LOCAL.
(activity_for_each_inmemory_child): New define.
* activity.c (activity_create): Call activity_prepare.
(activity_destroy): Assert that VICTIM->FRAMES_LOCAL is 0. Call
activity_deprepare.
(activity_prepare): New function.
(activity_deprepare): Likewise.
(do_activity_dump): Assert that the total number of objects on the
active, dirty and clean lists matches ACTIVITY->FRAMES_LOCAL.
Diffstat (limited to 'viengoos/object.c')
-rw-r--r-- | viengoos/object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/viengoos/object.c b/viengoos/object.c index fa9b29d..bd1f9cf 100644 --- a/viengoos/object.c +++ b/viengoos/object.c @@ -1,5 +1,5 @@ /* object.c - Object store management. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2008 Free Software Foundation, Inc. Written by Neal H. Walfield <neal@gnu.org>. This file is part of the GNU Hurd. @@ -186,7 +186,7 @@ memory_object_destroy (struct activity *activity, struct object *object) if (desc->type == cap_activity_control) { struct activity *a = (struct activity *) object; - if (a->frames) + if (a->frames_total) panic ("Attempt to page-out activity with allocated frames"); } |