public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/54345] New: jump threading leaks e->aux heap memory
@ 2012-08-21 12:27 rguenth at gcc dot gnu.org
  2012-09-20  8:17 ` [Bug tree-optimization/54345] " polacek at redhat dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-08-21 12:27 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54345

             Bug #: 54345
           Summary: jump threading leaks e->aux heap memory
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: memory-hog
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rguenth@gcc.gnu.org


valgrind shows

==30772== 64 bytes in 4 blocks are definitely lost in loss record 15,347 of
29,883
==30772==    at 0x4C29ADD: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30772==    by 0xCE28C7: xmalloc (xmalloc.c:147)
==30772==    by 0x99C8E8: thread_through_all_blocks(bool)
(tree-ssa-threadupdate.c:1134)
==30772==    by 0x92BDCF: tree_ssa_dominator_optimize() (tree-ssa-dom.c:790)
==30772==    by 0x818C3A: execute_one_pass(opt_pass*) (passes.c:2157)
==30772==    by 0x818F84: execute_pass_list(opt_pass*) (passes.c:2212)
==30772==    by 0x818F96: execute_pass_list(opt_pass*) (passes.c:2213)
==30772==    by 0x68F583: expand_function(cgraph_node*) (cgraphunit.c:1609)
==30772==    by 0x6909E8: compile() (cgraphunit.c:1714)
==30772==    by 0x690F64: finalize_compilation_unit() (cgraphunit.c:2089)
==30772==    by 0x564956: cp_write_global_declarations() (decl2.c:4024)
==30772==    by 0x8AABF4: compile_file() (toplev.c:560)

that would be easily solvable by using an obstack for the allocation
of the two pointers.  That would be cheaper as well.  It's lifetime
would be thread_through_all_blocks ().


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-02-20 14:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-21 12:27 [Bug tree-optimization/54345] New: jump threading leaks e->aux heap memory rguenth at gcc dot gnu.org
2012-09-20  8:17 ` [Bug tree-optimization/54345] " polacek at redhat dot com
2012-09-20 11:13 ` rguenther at suse dot de
2012-09-21 15:11 ` polacek at redhat dot com
2012-09-24  8:52 ` rguenther at suse dot de
2012-09-28 13:04 ` mpolacek at gcc dot gnu.org
2021-08-14 22:21 ` pinskia at gcc dot gnu.org
2024-02-20 14:02 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).