[Gc] Re: [PATCH] Dealing with `.data.rel.ro'

Ludovic Courtès ludo at gnu.org
Wed Sep 2 00:47:54 PDT 2009


"Boehm, Hans" <hans.boehm at hp.com> writes:

> I checked in the last .data.rel.ro patch with Ivan's corrections,
> derived from Ludo's patch.
> I suspect this may sometimes result in appreciable improvements in
> speed or space on Linux.

I finally got around to measuring that on Guile/libgc:


There's a noticeable improvement for Guile.

However, the surprising part of the results is that static allocation of
some of Guile's objects known at compile-time ("bdw-gc-static-alloc")
when *not* linking with `-z relro' leads to a slight execution time
degradation and increased heap usage---whereas we'd really expect heap
usage to be reduced since some objects are statically allocated instead
of being allocated on the heap when Guile is started.

How would you explain this?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : https://napali.hpl.hp.com/pipermail/gc/attachments/20090902/76206175/attachment.pgp

More information about the Gc mailing list