Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jan 2011 17:21:25 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 187958 for review
Message-ID:  <201101191721.p0JHLP50089536@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@187958?ac=10

Change 187958 by trasz@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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101191721.p0JHLP50089536>