This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] fix memory corruption bug in tm_region_init
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: Richard Henderson <rth at redhat dot com>, Torvald Riegel <triegel at redhat dot com>
- Date: Mon, 05 Mar 2012 10:54:27 -0600
- Subject: [patch] fix memory corruption bug in tm_region_init
Hi folks.
Torvald has a testcase from the STAMP benchmark that is showing a memory
corruption error after my fix to publication safety problems.
The problem is we're allocating a chunk of worklist memory of size
n_basic_blocks which changes with tail merge optimization and such. We
end up with a smaller n_basic_blocks than some of the BB's left in the
region. I believe what we want is last_basic_block.
This fixes the memory corruption bug. I couldn't minimize a sensible
testcase.
OK?
Attachment:
curr
Description: Text document