Page MenuHomeFreeBSD

D21517.id61642.diff
No OneTemporary

D21517.id61642.diff

Index: sys/vm/vm_map.c
===================================================================
--- sys/vm/vm_map.c
+++ sys/vm/vm_map.c
@@ -2779,6 +2779,17 @@
if (current->eflags & MAP_ENTRY_IS_SUB_MAP)
continue;
+ /*
+ * MADV_FREE would otherwise rewind time to the
+ * creation of the shadow object. This is a
+ * temporary fix to
+ * https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240061
+ */
+ if (behav == MADV_FREE &&
+ current->object.vm_object != NULL &&
+ current->object.vm_object->backing_object != NULL)
+ continue;
+
pstart = OFF_TO_IDX(current->offset);
pend = pstart + atop(current->end - current->start);
useStart = current->start;

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 20, 12:09 PM (17 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30003074
Default Alt Text
D21517.id61642.diff (704 B)

Event Timeline