public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/16974] New: excessive context size after {stmt;}->stmt; optimization
@ 2014-05-21 18:02 fche at redhat dot com
  2015-02-25 22:26 ` [Bug translator/16974] " ajakop at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: fche at redhat dot com @ 2014-05-21 18:02 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=16974

            Bug ID: 16974
           Summary: excessive context size after {stmt;}->stmt;
                    optimization
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: fche at redhat dot com

When dead_stmtexpr_remover::visit_block unwraps statements
from unnecessary { } nesting levels, it has an unintended
consequence on context memory allocation.  Namely,
c_tmpcounter::visit_* only special cases the visit_block
type for special handling, wherein distinct statements
may have overlapping temporaries.  So for constructs such
as


if (foo=="1") foreach (a in b) ... 
else if (foo=="2") foreach (c in d) ...
else ...

all the temporary variables for all blocks (now nested
singleton statements) are expanded as siblings in the
function context struct.

Instead, all of these tree-like staptree nodes (if_statement,
for*_statement, perhaps others) should do what
c_tmpcounter::visit_block does, namely wrap individual
subtree branches into a common anonymous union {}.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

* [Bug translator/16974] excessive context size after {stmt;}->stmt; optimization
  2014-05-21 18:02 [Bug translator/16974] New: excessive context size after {stmt;}->stmt; optimization fche at redhat dot com
@ 2015-02-25 22:26 ` ajakop at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: ajakop at redhat dot com @ 2015-02-25 22:26 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=16974

Abe Jakop <ajakop at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |ajakop at redhat dot com
         Resolution|---                         |FIXED

--- Comment #1 from Abe Jakop <ajakop at redhat dot com> ---
fixed in commit: d74a787413c860f3ee9624e73db6f7e046d67420

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

end of thread, other threads:[~2015-02-25 22:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-21 18:02 [Bug translator/16974] New: excessive context size after {stmt;}->stmt; optimization fche at redhat dot com
2015-02-25 22:26 ` [Bug translator/16974] " ajakop at redhat dot com

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).