diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-08-16 02:18:47 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-08-16 02:19:38 +0200 |
commit | 80ffa7de3147b27c82667a7e2224439f92106f92 (patch) | |
tree | f4af5eae93780a12306c9026cfd381d8d7b33a4b /vm/vm_map.c | |
parent | 03955afa0a3cc6e9dece39ec631ce3744b1b08ba (diff) |
codify locking contractspmm-2015-08-16
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 1ebccac..57d931b 100644 --- a/vm/vm_map.c +++ b/vm/vm_map.c @@ -516,6 +516,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 @@ -586,6 +588,7 @@ kern_return_t vm_map_find_entry( * * the map should be locked. */ + assert(have_vm_map_lock(map)); *address = start; @@ -903,6 +906,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 |