Re: [PATCH] Fix PR64535 - increase emergency EH buffers via a new allocator

2015-01-20 Thread Jonathan Wakely
On 20/01/15 14:25 +0100, Richard Biener wrote: Though my question was whether 'throw X()' might instead behave as 'throw std::bad_alloc()' if allocating X exceeds the system's resource limits. I guess the answer is yes as it's undefined? Right, if we can't allocate memory for an X (plus the EH

Re: [PATCH] Fix PR64535 - increase emergency EH buffers via a new allocator

2015-01-20 Thread Richard Biener
On Tue, 20 Jan 2015, Jonathan Wakely wrote: > On 20/01/15 10:06 +0100, Richard Biener wrote: > > On Mon, 19 Jan 2015, Jonathan Wakely wrote: > > > > > On 19/01/15 11:33 +0100, Richard Biener wrote: > > > > On Mon, 12 Jan 2015, Richard Biener wrote: > > > > > > > > > > > > > > This "fixes" PR64535

Re: [PATCH] Fix PR64535 - increase emergency EH buffers via a new allocator

2015-01-20 Thread Jonathan Wakely
On 20/01/15 10:06 +0100, Richard Biener wrote: On Mon, 19 Jan 2015, Jonathan Wakely wrote: On 19/01/15 11:33 +0100, Richard Biener wrote: > On Mon, 12 Jan 2015, Richard Biener wrote: > > > > > This "fixes" PR64535 by changing the fixed object size emergency pool > > to a variable EH object size

Re: [PATCH] Fix PR64535 - increase emergency EH buffers via a new allocator

2015-01-20 Thread Richard Biener
On Mon, 19 Jan 2015, Jonathan Wakely wrote: > On 19/01/15 11:33 +0100, Richard Biener wrote: > > On Mon, 12 Jan 2015, Richard Biener wrote: > > > > > > > > This "fixes" PR64535 by changing the fixed object size emergency pool > > > to a variable EH object size (but fixed arena size) allocator.

Re: [PATCH] Fix PR64535 - increase emergency EH buffers via a new allocator

2015-01-19 Thread Jonathan Wakely
On 19/01/15 11:33 +0100, Richard Biener wrote: On Mon, 12 Jan 2015, Richard Biener wrote: This "fixes" PR64535 by changing the fixed object size emergency pool to a variable EH object size (but fixed arena size) allocator. Via combining the dependent and non-dependent EH arenas this should al

Re: [PATCH] Fix PR64535 - increase emergency EH buffers via a new allocator

2015-01-19 Thread Richard Biener
On Mon, 12 Jan 2015, Richard Biener wrote: > > This "fixes" PR64535 by changing the fixed object size emergency pool > to a variable EH object size (but fixed arena size) allocator. Via > combining the dependent and non-dependent EH arenas this should allow > around 600 bad_alloc throws in OOM s

[PATCH] Fix PR64535 - increase emergency EH buffers via a new allocator

2015-01-12 Thread Richard Biener
This "fixes" PR64535 by changing the fixed object size emergency pool to a variable EH object size (but fixed arena size) allocator. Via combining the dependent and non-dependent EH arenas this should allow around 600 bad_alloc throws in OOM situations on x86_64-linux compared to the current 64 w