diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-08-27 18:46:16 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-09-14 14:48:13 +0200 |
commit | 3d9c4ecbd1d3616a4d1a86423ff84e31756cb4d0 (patch) | |
tree | 95dfa28936107bfd33a41acc3f4c08aa96fd95b2 | |
parent | 606a49935c00cff077577ffde16b665483561f98 (diff) |
yyy interesting
-rw-r--r-- | vm/memory_object.c | 8 |
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; |