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

This commit is contained in:
avg 2014-02-17 15:35:11 +00:00
parent 22073dc5fc
commit 6f834c6747

View File

@ -734,11 +734,6 @@ dt_zalloc(dtrace_hdl_t *dtp, size_t size)
{ {
void *data; void *data;
if (size > 16 * 1024 * 1024) {
(void) dt_set_errno(dtp, EDT_NOMEM);
return (NULL);
}
if ((data = malloc(size)) == NULL) if ((data = malloc(size)) == NULL)
(void) dt_set_errno(dtp, EDT_NOMEM); (void) dt_set_errno(dtp, EDT_NOMEM);
else else
@ -752,11 +747,6 @@ dt_alloc(dtrace_hdl_t *dtp, size_t size)
{ {
void *data; void *data;
if (size > 16 * 1024 * 1024) {
(void) dt_set_errno(dtp, EDT_NOMEM);
return (NULL);
}
if ((data = malloc(size)) == NULL) if ((data = malloc(size)) == NULL)
(void) dt_set_errno(dtp, EDT_NOMEM); (void) dt_set_errno(dtp, EDT_NOMEM);