Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2018 08:44:16 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        Pedro Giffuni <pfg@freebsd.org>, "Conrad E. Meyer" <cem@freebsd.org>,  src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r328218 - in head/sys: amd64/amd64 arm/xscale/ixp425 arm64/arm64 cam cam/ctl compat/ndis dev/aacraid dev/advansys dev/ath dev/beri/virtio dev/bnxt dev/bwn dev/ciss dev/cxgbe/crypto dev/...
Message-ID:  <CANCZdfpL7t_J6xXi8w%2BwtxE%2B4x8EA0AzqzQKno=dUKaJ_NXFrw@mail.gmail.com>
In-Reply-To: <20180124182548.X1063@besplex.bde.org>
References:  <201801211542.w0LFgbsp005980@repo.freebsd.org> <CAG6CVpXxuFyHS11rF=NF6bSSkC2=xnDh=WnbK-aWp4sOomrZ7w@mail.gmail.com> <51ff8aef-5660-7857-e4d5-12cdc77bc071@FreeBSD.org> <20180124182548.X1063@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 24, 2018 at 1:50 AM, Bruce Evans <brde@optusnet.com.au> wrote:

> On Tue, 23 Jan 2018, Pedro Giffuni wrote:
>
> On 23/01/2018 14:08, Conrad Meyer wrote:
>>
>>> Hi Pedro,
>>>
>>> On Sun, Jan 21, 2018 at 7:42 AM, Pedro F. Giffuni <pfg@freebsd.org>
>>> wrote:
>>>
>>>> Author: pfg
>>>> Date: Sun Jan 21 15:42:36 2018
>>>> New Revision: 328218
>>>> URL: https://svnweb.freebsd.org/changeset/base/328218
>>>>
>>>> Log:
>>>>    Revert r327828, r327949, r327953, r328016-r328026, r328041:
>>>>    Uses of mallocarray(9).
>>>>
>>>>    The use of mallocarray(9) has rocketed the required swap to build
>>>> FreeBSD.
>>>>    This is likely caused by the allocation size attributes which put
>>>> extra pressure
>>>>    on the compiler.
>>>>
>>> I'm confused about this change.  Wouldn't it be better to remove the
>>> annotation/attributes from mallocarray() than to remove the protection
>>> against overflow?
>>>
>>
> It would be better to remove mallocarray().


I agree completely. It doesn't do what you think it is doing, for all the
reasons that Bruce outlines. We thought it was a bad idea when it came up 2
years ago and nothing has really changed.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpL7t_J6xXi8w%2BwtxE%2B4x8EA0AzqzQKno=dUKaJ_NXFrw>