From c02fad0746e9744ca2e406054b1846973fa490b3 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Thu, 27 Aug 2015 18:46:16 +0200 Subject: yyy interesting --- vm/memory_object.c | 8 +++++--- 1 file 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; -- cgit v1.2.3