diff options
Diffstat (limited to 'vm/vm_map.c')
-rw-r--r-- | vm/vm_map.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vm/vm_map.c b/vm/vm_map.c index 9098dfd..5099283 100644 --- a/vm/vm_map.c +++ b/vm/vm_map.c @@ -531,6 +531,8 @@ kern_return_t vm_map_find_entry( vm_offset_t start; vm_offset_t end; + assert(have_vm_map_lock(map)); + /* * Look for the first possible address; * if there's already something at this @@ -601,6 +603,7 @@ kern_return_t vm_map_find_entry( * * the map should be locked. */ + assert(have_vm_map_lock(map)); *address = start; @@ -918,6 +921,7 @@ kern_return_t vm_map_enter( * * the map should be locked. */ + assert(have_vm_map_lock(map)); /* * See whether we can avoid creating a new entry (and object) by |