mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-19 08:24:32 +00:00
The Git repository of the Libabigail Project
042063c56e
In abixml, the same type T can be defined in several translation units. This leads to a lot of duplication and, for some big binaries, to a *lot* of memory use. For instance, loading the abixml representing the abi of the r300_dri.so library takes more that 10GB or ram on a 64 bits system! This patch addresses the issue by allowing declarations to be duplicated, but by allowing only one definition per type, per corpus. With it, loading the abixml of r300_dri.so now takes less than 2GB or ram. * src/abg-writer.cc (write_translation_unit): Do not clear some important per-translation unit maps here. There are needed to keep track of the emitted and referenced types through the entire corpus. Avoid (wrongly) recording function types twice. (write_array_type_def, write_function_decl, write_function_type): Record referenced types. (write_class_decl): Record referenced types, and, allow only declarations to be duplicated in a corpus. Signed-off-by: Dodji Seketeli <dodji@redhat.com> |
||
---|---|---|
doc | ||
include | ||
m4 | ||
scripts | ||
src | ||
tests | ||
tools | ||
.gitignore | ||
abigail.m4 | ||
AUTHORS | ||
ChangeLog | ||
COMMIT-LOG-GUIDELINES | ||
COMPILING | ||
config.h.in | ||
configure.ac | ||
CONTRIBUTING | ||
COPYING | ||
COPYING-GPLV3 | ||
COPYING-LGPLV2 | ||
COPYING-LGPLV3 | ||
gen-changelog.py | ||
install-sh | ||
libabigail.pc.in | ||
ltmain.sh | ||
Makefile.am | ||
README |
This is the Application Binary Interface Generic Analysis and Instrumentation Library. It aims at constructing, manipulating, serializing and de-serializing ABI-relevant artifacts. The set of artifacts that we are intersted is made of quantities like types, variable, fonctions and declarations of a given library or program. For a given library or program this set of quantities is called an ABI corpus. This library aims at (among other things) providing a way to compare two ABI Corpora (apparently the plural of corpus is copora, heh, that's cool), provide detailed information about their differences, and help build tools to infer interesting conclusions about these differences. You are welcome to contribute to this project after reading the files CONTRIBUTING and COMMIT-LOG-GUIDELINES files in the source tree. Communicating with the maintainers of this project -- including sending patches to be include to the source code -- happens via email at libabigail@sourceware.org.