svn commit: r262068 - stable/9/cddl/contrib/opensolaris/lib/libdtrace/common

Andriy Gapon avg at FreeBSD.org
Mon Feb 17 15:35:25 UTC 2014


Author: avg
Date: Mon Feb 17 15:35:24 2014
New Revision: 262068
URL: http://svnweb.freebsd.org/changeset/base/262068

Log:
  MFC r261122: dtrace: remove unexplained 16MB limitation from dt_alloc/dt_zalloc

Modified:
  stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c
Directory Properties:
  stable/9/cddl/contrib/opensolaris/   (props changed)
  stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/   (props changed)

Modified: stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c
==============================================================================
--- stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c	Mon Feb 17 15:35:11 2014	(r262067)
+++ stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c	Mon Feb 17 15:35:24 2014	(r262068)
@@ -733,11 +733,6 @@ dt_zalloc(dtrace_hdl_t *dtp, size_t size
 {
 	void *data;
 
-	if (size > 16 * 1024 * 1024) {
-		(void) dt_set_errno(dtp, EDT_NOMEM);
-		return (NULL);
-	}
-
 	if ((data = malloc(size)) == NULL)
 		(void) dt_set_errno(dtp, EDT_NOMEM);
 	else
@@ -751,11 +746,6 @@ dt_alloc(dtrace_hdl_t *dtp, size_t size)
 {
 	void *data;
 
-	if (size > 16 * 1024 * 1024) {
-		(void) dt_set_errno(dtp, EDT_NOMEM);
-		return (NULL);
-	}
-
 	if ((data = malloc(size)) == NULL)
 		(void) dt_set_errno(dtp, EDT_NOMEM);
 


More information about the svn-src-stable-9 mailing list