DragonFly commits List (threaded) for 2012-03
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: rtld: allocate obj->vertab only once
commit 13977d5d2754f0487f3719b851bdfddc6acdfed5
Author: John Marino <draco@marino.st>
Date: Fri Mar 30 20:07:35 2012 +0200
rtld: allocate obj->vertab only once
Verbatim from FreeBSD SVN 233546 (27 MAR 2012)
Prevent rtld_verify_object_versions() from being called several times for
the same object. This can happen when object is a dependency of the
dlopen()ed dso. When called several times, we waste time due to unneeded
processing, and memory, because obj->vertab is allocated anew on each
iteration.
Summary of changes:
libexec/rtld-elf/rtld.c | 4 ++++
libexec/rtld-elf/rtld.h | 1 +
2 files changed, 5 insertions(+), 0 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/13977d5d2754f0487f3719b851bdfddc6acdfed5
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]