summaryrefslogtreecommitdiff
path: root/viengoos/memory.c
diff options
context:
space:
mode:
authorneal <neal>2008-02-16 10:21:54 +0000
committerneal <neal>2008-02-16 10:21:54 +0000
commitde89a198035cc2c0d52688f804bf2b348b3dc493 (patch)
tree73c4dc547124cf833002f6e121c86282aefa1213 /viengoos/memory.c
parent0c384ad5fc859424b2f115804831376b0aeb074b (diff)
viengoos/
2008-02-16 Neal H. Walfield <neal@gnu.org> * object.h (kernel_lock): New declaration. Replace current locking scheme with this global lock variable. (lru_lock): Remove variable. (struct object_desc): Remove field lock. * object.c (kernel_lock): New variable. libc-parts/ 2008-02-16 Neal H. Walfield <neal@gnu.org> * process-spawn.c (process_spawn) [RM_INTERN]: Don't take LRU_LOCK.
Diffstat (limited to 'viengoos/memory.c')
-rw-r--r--viengoos/memory.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/viengoos/memory.c b/viengoos/memory.c
index dba414f..97a1091 100644
--- a/viengoos/memory.c
+++ b/viengoos/memory.c
@@ -361,7 +361,6 @@ memory_frame_allocate (struct activity *activity)
if (! f)
{
/* Check if there are any pages on the available list. */
- ss_mutex_lock (&lru_lock);
/* XXX: We avoid objects that require special treatment.
Realize this special treatment. */
@@ -370,18 +369,13 @@ memory_frame_allocate (struct activity *activity)
{
if (desc->type != cap_activity_control
&& desc->type != cap_thread)
- {
- if (ss_mutex_trylock (&desc->lock))
- /* We will detach DESC from AVAILALBE in
- memory_object_destroy. */
- break;
- }
+ /* We will detach DESC from AVAILALBE in
+ memory_object_destroy. */
+ break;
desc = available_list_prev (desc);
}
- ss_mutex_unlock (&lru_lock);
-
if (desc)
{
assert (desc->live);