This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: gcc-3.4.0: mt_allocator crashes due to alignment problems on SPARC targets when sizeof(type) <= 2
- From: Brad Spencer <spencer at infointeractive dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Tue, 4 May 2004 19:21:30 -0300
- Subject: Re: gcc-3.4.0: mt_allocator crashes due to alignment problems on SPARC targets when sizeof(type) <= 2
- References: <20040504221210.GC21258@eng.infointeractive.com>
On Tue, May 04, 2004 at 07:12:10PM -0300, Brad Spencer wrote:
> I'm not familiar with the details of the new mt_allocator
> implementation, but I can work up a patch attempt if necessary. Just
> let me know if I should. (BTW, I found this when boost::regex crashed
> in a constructor on this target.) I started out by just changing
> the _S_initialize() __bin_size and __bin_max to 2 as an experiment,
> but that didn't appear to be enough. :(
This'll teach me to not check the latest CVS before posting. It looks
like Paolo's change in rev 1.22 may have addressed this by setting a
minimum bin size (defaulted to 8). I see the thread about that
mentioned alignment problems on ia64. Sorry for the duplicate issue.
Can I just drop the latest version of mt_allocator.h into the
gcc-3.4.0 source tree safely? Perhaps I should just use "pool"
for now instead? I will try some of them out tomorrow and report.
--
------------------------------------------------------------------
Brad Spencer - spencer@infointeractive.com - "It's quite nice..."
Systems Architect | InfoInterActive Corp. | A Canadian AOL Company