Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110651585
D16148.id44964.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
680 B
Referenced Files
None
Subscribers
None
D16148.id44964.diff
View Options
Index: head/sys/vm/vm_map.c
===================================================================
--- head/sys/vm/vm_map.c
+++ head/sys/vm/vm_map.c
@@ -3158,7 +3158,14 @@
if (entry->wired_count != 0)
vm_map_entry_unwire(map, entry);
- pmap_remove(map->pmap, entry->start, entry->end);
+ /*
+ * Remove mappings for the pages, but only if the
+ * mappings could exist. For instance, it does not
+ * make sense to call pmap_remove() for guard entries.
+ */
+ if ((entry->eflags & MAP_ENTRY_IS_SUB_MAP) != 0 ||
+ entry->object.vm_object != NULL)
+ pmap_remove(map->pmap, entry->start, entry->end);
/*
* Delete the entry only after removing all pmap
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 11:33 AM (1 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16770594
Default Alt Text
D16148.id44964.diff (680 B)
Attached To
Mode
D16148: Save a call to pmap_remove() if entry cannot have any pages mapped.
Attached
Detach File
Event Timeline
Log In to Comment