Using D

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 11 22:10:40 PDT 2014


On 7/11/2014 9:24 PM, Brad Roberts via Digitalmars-d wrote:
> On 7/11/14, 9:10 PM, Walter Bright via Digitalmars-d wrote:
>> The thing is, Exceptions should be exceptional, not normal. So if you're
>> worried about GC pauses
>> during exception processing, I think it's time to re-examine what exceptions
>> in your code are being
>> used for.
>
> It's not the try/throw/catch/finally parts, it's the new that's usually
> involved.  The chance that the gc will kick in and affect every thread, not just
> the thread dealing with the exception is a big hit that is unacceptable in some
> scenarios.

That's a good point.


More information about the Digitalmars-d mailing list