PERFORCE change 187958 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Wed Jan 19 17:21:26 UTC 2011
http://p4web.freebsd.org/@@187958?ac=10
Change 187958 by trasz at trasz_victim on 2011/01/19 17:20:43
Disable this piece of code; it's not really neccessary and might
cause an ugly race condition.
Affected files ...
.. //depot/projects/soc2009/trasz_limits/sys/vm/vm_map.c#30 edit
Differences ...
==== //depot/projects/soc2009/trasz_limits/sys/vm/vm_map.c#30 (text+ko) ====
@@ -3295,7 +3295,9 @@
rlim_t stacklim, vmemlim;
int is_procstack, rv;
struct ucred *cred;
+#ifdef notyet
uint64_t limit;
+#endif
int error;
Retry:
@@ -3409,9 +3411,11 @@
grow_amount = trunc_page((vm_size_t)stacklim) -
ctob(vm->vm_ssize);
}
- limit = rusage_get_limit(p, RUSAGE_STACK);
+#ifdef notyet
+ limit = rusage_get_available(p, RUSAGE_STACK);
if (is_procstack && (ctob(vm->vm_ssize) + grow_amount > limit))
grow_amount = limit - ctob(vm->vm_ssize);
+#endif
/* If we would blow our VMEM resource limit, no go */
if (map->size + grow_amount > vmemlim) {
More information about the p4-projects
mailing list