This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/33868] [4.3 Regression] Gross memory usage of var-tracking
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Oct 2007 10:05:08 -0000
- Subject: [Bug debug/33868] [4.3 Regression] Gross memory usage of var-tracking
- References: <bug-33868-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from rguenth at gcc dot gnu dot org 2007-10-23 10:05 -------
We don't finish vt_find_locations () and have loads of variables allocated:
750 new_var = pool_alloc (var_pool);
(gdb) print *var_pool
$3 = {name = 0xf3d05a "variable_def pool", id = 22681, elts_per_block = 64,
returned_free_list = 0x0, virgin_free_list = 0x775c11d8 "",
virgin_elts_remaining = 40, elts_allocated = 3427264, elts_free = 40,
blocks_allocated = 53551, block_list = 0x775bead0, block_size = 26632,
elt_size = 416}
(gdb) print *loc_chain_pool
$9 = {name = 0xf3d06c "location_chain_def pool", id = 22682,
elts_per_block = 1024, returned_free_list = 0x0,
virgin_free_list = 0x7762ed48 "", virgin_elts_remaining = 803,
elts_allocated = 3735552, elts_free = 803, blocks_allocated = 3648,
block_list = 0x7762c3d0, block_size = 49160, elt_size = 48}
#0 unshare_variable (set=0x875ff48, var=0x7764d148,
initialized=VAR_INIT_STATUS_INITIALIZED)
at /space/rguenther/src/svn/pointer_plus/gcc/var-tracking.c:750
#1 0x0000000000aeb75b in delete_variable_part (set=0x875ff48,
loc=0x2b5761fab440, decl=0x2b57662d1000, offset=0)
at /space/rguenther/src/svn/pointer_plus/gcc/var-tracking.c:2592
#2 0x0000000000ae6e47 in var_reg_delete (set=0x875ff48, loc=0x2b576506c9c0,
clobber=1 '\001')
at /space/rguenther/src/svn/pointer_plus/gcc/var-tracking.c:957
#3 0x0000000000aea150 in compute_bb_dataflow (bb=0x2b57616a7360)
at /space/rguenther/src/svn/pointer_plus/gcc/var-tracking.c:2068
#4 0x0000000000aea48c in vt_find_locations ()
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33868