Print this page
OS-881 To workaround OS-580 add support to only invalidate mappings from a single process
@@ -19,10 +19,11 @@
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright 2012 Joyent, Inc. All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/mman.h>
@@ -549,11 +550,11 @@
if (end <= start)
return (0);
errno = 0;
res = pr_memcntl(Pr, start, (end - start), MC_SYNC,
- (caddr_t)(MS_ASYNC | MS_INVALIDATE), 0, 0);
+ (caddr_t)(MS_ASYNC | MS_INVALCURPROC), 0, 0);
debug_high("pr_memcntl [%p-%p): %d", (void *)start, (void *)end, res);
/*
* EBUSY indicates none of the pages have backing store allocated, or
* some pages were locked, which are less interesting than other