Print this page
OS-881 To workaround OS-580 add support to only invalidate mappings from a single process

*** 19,28 **** --- 19,29 ---- * 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,559 **** if (end <= start) return (0); errno = 0; res = pr_memcntl(Pr, start, (end - start), MC_SYNC, ! (caddr_t)(MS_ASYNC | MS_INVALIDATE), 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 --- 550,560 ---- if (end <= start) return (0); errno = 0; res = pr_memcntl(Pr, start, (end - start), MC_SYNC, ! (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