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

next in thread | raw e-mail | index | archive | help
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);
 



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