vm_object.c (c6c9025b65a623bd482eeeff9451974711b381e1) vm_object.c (0cc74f144e25cd6281b65b53310cace171075276)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 1133 unchanged lines hidden (view full) ---

1142 return;
1143 }
1144 VM_OBJECT_UNLOCK(source);
1145 }
1146
1147 /*
1148 * Allocate a new object with the given length.
1149 */
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 1133 unchanged lines hidden (view full) ---

1142 return;
1143 }
1144 VM_OBJECT_UNLOCK(source);
1145 }
1146
1147 /*
1148 * Allocate a new object with the given length.
1149 */
1150 result = vm_object_allocate(OBJT_DEFAULT, length);
1150 result = vm_object_allocate(OBJT_DEFAULT, atop(length));
1151
1152 /*
1153 * The new object shadows the source object, adding a reference to it.
1154 * Our caller changes his reference to point to the new object,
1155 * removing a reference to the source object. Net result: no change
1156 * of reference count.
1157 *
1158 * Try to optimize the result object's page color when shadowing

--- 1073 unchanged lines hidden ---
1151
1152 /*
1153 * The new object shadows the source object, adding a reference to it.
1154 * Our caller changes his reference to point to the new object,
1155 * removing a reference to the source object. Net result: no change
1156 * of reference count.
1157 *
1158 * Try to optimize the result object's page color when shadowing

--- 1073 unchanged lines hidden ---