This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12850] [3.4/3.5 Regression] memory consumption for heavy template instantiations tripled since 3.3
- From: "hubicka at ucw dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jan 2004 16:37:45 -0000
- Subject: [Bug c++/12850] [3.4/3.5 Regression] memory consumption for heavy template instantiations tripled since 3.3
- References: <20031030234001.12850.jens.maurer@gmx.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From hubicka at ucw dot cz 2004-01-27 16:37 -------
Subject: Re: [3.4/3.5 Regression] memory consumption for heavy template instantiations tripled since 3.3
>
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-27 16:35 -------
> The only memory leak I had was from shorten_branches in final.c which I have a fix for
> now but that does account for the 60M difference between GC and real allocated
> memory (even though I suspect there are large amounts of pages still allocated because
> the GC is spread all over them). Also malloc only accounts for 20M.
I have additional patches in testing cutting this into roughtly 118MB,
still there is room for improvement as really we shall be decreasing
amount of memory during the compilation stage that we don't (the parsed
program after template instantiation is slightly over 60MB of GGC memory)
We also burn a lot of unnecesary memory in C++ parser during name
lookup, I am probably not going to address this as I simply don't
understand the issue at all.
Honza
>
> --
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12850
>
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12850