Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Feb 2014 15:35:11 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r262067 - stable/10/cddl/contrib/opensolaris/lib/libdtrace/common
Message-ID:  <201402171535.s1HFZBhV013887@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Mon Feb 17 15:35:11 2014
New Revision: 262067
URL: http://svnweb.freebsd.org/changeset/base/262067

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

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

Modified: stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c
==============================================================================
--- stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c	Mon Feb 17 15:33:21 2014	(r262066)
+++ stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c	Mon Feb 17 15:35:11 2014	(r262067)
@@ -734,11 +734,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
@@ -752,11 +747,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);
 



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