summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-27 18:46:16 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-28 15:48:05 +0200
commitc02fad0746e9744ca2e406054b1846973fa490b3 (patch)
tree2778c848eecd60776accafff5d3ab5d76db76ece
parentc31edfb7faa877d1d1e62174d1ada82f59505af6 (diff)
yyy interestingpmm-2015-08-28
-rw-r--r--vm/memory_object.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/vm/memory_object.c b/vm/memory_object.c
index 44f21c5..3000d1e 100644
--- a/vm/memory_object.c
+++ b/vm/memory_object.c
@@ -470,9 +470,10 @@ memory_object_lock_result_t memory_object_lock_page(
* wired, then give up.
*/
- if (m->busy)
+ if (m->busy) {
+ printf("busy MEMORY_OBJECT_LOCK_RESULT_MUST_BLOCK\n");
return(MEMORY_OBJECT_LOCK_RESULT_MUST_BLOCK);
-
+ }
assert(!m->fictitious);
if (m->wire_count != 0) {
@@ -515,7 +516,7 @@ memory_object_lock_result_t memory_object_lock_page(
return(MEMORY_OBJECT_LOCK_RESULT_DONE);
}
-
+ printf("wired MEMORY_OBJECT_LOCK_RESULT_MUST_BLOCK\n");
return(MEMORY_OBJECT_LOCK_RESULT_MUST_BLOCK);
}
@@ -792,6 +793,7 @@ MACRO_END
PAGE_ASSERT_WAIT(m, FALSE);
vm_object_unlock(object);
+ //Debugger("about to block");
thread_block((void (*)()) 0);
vm_object_lock(object);
continue;