diff options
author | avg <avg@FreeBSD.org> | 2014-02-17 15:35:11 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2014-02-17 15:35:11 +0000 |
commit | 6f834c67479bc07de6d5fbe552e3eb8d55f5c183 (patch) | |
tree | 3a1ae0effd6be24a6a3aab5777c114da33186f74 /cddl/contrib/opensolaris | |
parent | 22073dc5fc6c528703efb1da893a0340043ffd69 (diff) | |
download | FreeBSD-src-6f834c67479bc07de6d5fbe552e3eb8d55f5c183.zip FreeBSD-src-6f834c67479bc07de6d5fbe552e3eb8d55f5c183.tar.gz |
MFC r261122: dtrace: remove unexplained 16MB limitation from dt_alloc/dt_zalloc
Diffstat (limited to 'cddl/contrib/opensolaris')
-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); |