Sujet : Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"
De : aph (at) *nospam* littlepinkcloud.invalid
Groupes : comp.lang.c++ comp.lang.cDate : 29. Apr 2024, 09:55:16
Autres entêtes
Message-ID : <sqCcnRbW5cnp_bL7nZ2dnZfqn_SdnZ2d@supernews.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
User-Agent : tin/1.9.2-20070201 ("Dalaruan") (UNIX) (Linux/4.18.0-477.27.1.el8_8.x86_64 (x86_64))
In comp.lang.c Lawrence D'Oliveiro <
ldo@nz.invalid> wrote:
On Fri, 8 Mar 2024 15:32:22 +0100, David Brown wrote:
And it will be tough on the cache as everything has to be copied and
moved.
I think all kinds of garbage collector end up being tough on the
cache. Because remember, they are doing things with lots of blocks
of memory that haven’t been accessed recently, and therefore are not
likely to be in the cache.
Not usually. Most garbage dies young, so the GC will be scanning
recently-allocated regions first. There's no strict need to scan old
regions unless the program starts to run short of memory. You might
have a periodic thread to do so, to reclaim some extra space.
Andrew.