Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Feb 2014 15:35:36 +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-8@freebsd.org
Subject:   svn commit: r262069 - stable/8/cddl/contrib/opensolaris/lib/libdtrace/common
Message-ID:  <201402171535.s1HFZa2U014006@svn.freebsd.org>

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

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

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

Modified: stable/8/cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c
==============================================================================
--- stable/8/cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c	Mon Feb 17 15:35:24 2014	(r262068)
+++ stable/8/cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c	Mon Feb 17 15:35:36 2014	(r262069)
@@ -730,11 +730,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
@@ -748,11 +743,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.s1HFZa2U014006>