diff options
author | avg <avg@FreeBSD.org> | 2014-01-24 15:04:02 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2014-01-24 15:04:02 +0000 |
commit | 206718cf52ee786e7dcb892c5bd4655f5468e8cb (patch) | |
tree | f092cfe5108182de9164a59174de5fa54073bca7 /cddl | |
parent | d93326e5784a5f392b6e278a538e0e0014d72037 (diff) | |
download | FreeBSD-src-206718cf52ee786e7dcb892c5bd4655f5468e8cb.zip FreeBSD-src-206718cf52ee786e7dcb892c5bd4655f5468e8cb.tar.gz |
dtrace: remove unexplained 16MB limitation from dt_alloc/dt_zalloc
The limitation was introduced in r178556 without any note or comment.
It seems pretty artificial and now it leads to problems like the following:
$ dtrace -x bufsize=17m -n ...
dtrace: processing aborted: Memory allocation failure
OpenSolaris and illumos never had this limitation.
Sponsored by: HybridCluster
Diffstat (limited to 'cddl')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c index 87211a2..4429019 100644 --- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c +++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c @@ -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); |