This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Long-standing error in exception handling by pool_allocator (contains untested patch)


Hi Paolo,

On Sun, Oct 10, 2004 at 05:25:15PM +0200, Paolo Carlini wrote:
> The below is what I have just finished regtesting on x86/x86_64-linux. 
> As you
> can see, I simply test that the fall back machinery originally designed 
> by SGI/HP
> is actually working, instead of testing for memory corruption: the 
> latter is more
> tricky, depends on too many parameters and risk to convey the misleading
> impression that the patch is "only" about memory corruption: in that 
> case simply
> zeroing _S_start_free/_S_end_free before calling ::operator new would 
> suffice.

Just wanted to tell you that your test works for my version of the
allocator (meaning it detects the problem and runs through after fixing
it). And you are right, it demonstrates the intended feature nicely.

Cheers,

cu Jo

-- 
La perfection est atteinte non quand il ne reste rien à ajouter, mais quand
il ne reste rien à enlever.  (Antoine de Saint-Exupéry)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]