public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libitm/51855] New: improve calculation of stack bottom in libitm's undolog
@ 2012-01-13 23:36 torvald at gcc dot gnu.org
  2012-01-13 23:38 ` [Bug libitm/51855] " torvald at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: torvald at gcc dot gnu.org @ 2012-01-13 23:36 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51855
           Summary: improve calculation of stack bottom in libitm's
                    undolog
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: libitm
        AssignedTo: torvald@gcc.gnu.org
        ReportedBy: torvald@gcc.gnu.org
                CC: aldyh@gcc.gnu.org, rth@gcc.gnu.org


It would be good to improve how libitm calculates the bottom of the stack space
of the current thread.  It needs to do that to prevent rolling back
transactional writes to this space because this would corrupt the stack frames
of the transaction rollback functions.  For 4.7, we handle this with
__builtin_dwarf_cfa() and an additional buffer zone of 256 bytes to deal with
another __builtin_memcpy() call that we need during rollback and whose stack
frame size we can't measure at runtime.  For 4.8, we should think about
improving that, perhaps based on the existing boehm-gc code for this
(GC_get_stack_base() in os_dep.c).


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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-13 23:36 [Bug libitm/51855] New: improve calculation of stack bottom in libitm's undolog torvald at gcc dot gnu.org
2012-01-13 23:38 ` [Bug libitm/51855] " torvald at gcc dot gnu.org
2012-01-13 23:47 ` pinskia at gcc dot gnu.org
2012-01-13 23:53 ` torvald at gcc dot gnu.org
2013-03-22 14:45 ` jakub at gcc dot gnu.org
2013-05-31 11:01 ` jakub at gcc dot gnu.org
2013-10-16  9:51 ` jakub at gcc dot gnu.org
2015-06-22 14:25 ` 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).