[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230130235341.u2qjearhh3rv6cm4@treble>
Date: Mon, 30 Jan 2023 15:53:41 -0800
From: Josh Poimboeuf <jpoimboe@...nel.org>
To: Thomas Weißschuh <linux@...ssschuh.net>
Cc: Peter Zijlstra <peterz@...radead.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 3/8] objtool: allocate multiple structures with
calloc()
On Tue, Dec 27, 2022 at 04:00:59PM +0000, Thomas Weißschuh wrote:
> By using calloc() instead of malloc() in a loop, libc does not have to
> keep around bookkeeping information for each single structure.
If we cared about memory leaks, this wouldn't really work because some
structures are added in later, after the reading of the original
sections and symbols. Luckily we don't care :-)
--
Josh
Powered by blists - more mailing lists