summaryrefslogtreecommitdiff
path: root/libpager/lock-completed.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-02-20 21:05:37 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-02-20 21:05:37 +0000
commit93493f41dc01ba4e13d5d35f71ed24c502c80e2d (patch)
treedfe31c19a073ac289727b2c3804f1b2bd34aecc0 /libpager/lock-completed.c
parent2c94cc123bf4e6064c37904c210b6aa7554e970c (diff)
(_pager_seqnos_memory_object_lock_completed): Print a notice when an
incoming lock completion corresponds to no outstanding lock request.
Diffstat (limited to 'libpager/lock-completed.c')
-rw-r--r--libpager/lock-completed.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libpager/lock-completed.c b/libpager/lock-completed.c
index a59550fe..a2a96dbf 100644
--- a/libpager/lock-completed.c
+++ b/libpager/lock-completed.c
@@ -1,5 +1,5 @@
/* Implementation of memory_object_lock_completed for pager library
- Copyright (C) 1994, 1995 Free Software Foundation
+ Copyright (C) 1994, 1995, 1996 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -61,6 +61,10 @@ _pager_seqnos_memory_object_lock_completed (mach_port_t object,
break;
}
+ if (!lr)
+ printf ("orphaned lock_request: offset = %#x; length = %#x\n",
+ offset, length);
+
_pager_release_seqno (p, seqno);
mutex_unlock (&p->interlock);
ports_port_deref (p);