*/
#if DEBUG
+extern int vm_check_map_sanity;
+
static void
check_map_sanity(vm_map_t map, vm_map_entry_t old_hole_entry)
{
}
create_new_hole = FALSE;
#if DEBUG
- check_map_sanity(map, &old_hole_entry);
+ if (vm_check_map_sanity) {
+ check_map_sanity(map, &old_hole_entry);
+ }
#endif /* DEBUG */
break;
}
create_new_hole = FALSE;
#if DEBUG
- check_map_sanity(map, &old_hole_entry);
+ if (vm_check_map_sanity) {
+ check_map_sanity(map, &old_hole_entry);
+ }
#endif /* DEBUG */
break;
}
}
#if DEBUG
- check_map_sanity(map, &old_hole_entry);
+ if (vm_check_map_sanity) {
+ check_map_sanity(map, &old_hole_entry);
+ }
#endif /* DEBUG */
SAVE_HINT_HOLE_WRITE(map, (struct vm_map_links*) hole_entry);
vm_map_delete_hole(map, hole_entry);
#if DEBUG
- if (check_map_with_hole_sanity) {
+ if (vm_check_map_sanity && check_map_with_hole_sanity) {
check_map_sanity(map, &old_hole_entry);
}
#endif /* DEBUG */
assert(new_hole_entry->start < new_hole_entry->end);
#if DEBUG
- if (check_map_with_hole_sanity) {
+ if (vm_check_map_sanity && check_map_with_hole_sanity) {
check_map_sanity(map, &old_hole_entry);
}
#endif /* DEBUG */
}
#if DEBUG
- if (check_map_with_hole_sanity) {
+ if (vm_check_map_sanity && check_map_with_hole_sanity) {
check_map_sanity(map, &old_hole_entry);
}
#endif /* DEBUG */
}
#if DEBUG
- if (check_map_with_hole_sanity) {
+ if (vm_check_map_sanity && check_map_with_hole_sanity) {
check_map_sanity(map, &old_hole_entry);
}
#endif /* DEBUG */