PERFORCE change 135167 for review
John Birrell
jb at FreeBSD.org
Sun Feb 10 11:54:18 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=135167
Change 135167 by jb at jb_freebsd1 on 2008/02/10 19:53:55
Limit the buffer size on amd64 only for now.
Affected files ...
.. //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/dtrace/dtrace.c#37 edit
Differences ...
==== //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/dtrace/dtrace.c#37 (text) ====
@@ -10363,6 +10363,7 @@
#else
int i;
+#if defined(__amd64__)
/*
* FreeBSD isn't good at limiting the amount of memory we
* ask to malloc, so let's place a limit here before trying
@@ -10370,6 +10371,7 @@
*/
if (size > physmem * PAGE_SIZE / (128 * (mp_maxid + 1)))
return(ENOMEM);
+#endif
ASSERT(MUTEX_HELD(&dtrace_lock));
for (i = 0; i <= mp_maxid; i++) {
More information about the p4-projects
mailing list