Using D
Brad Roberts via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jul 11 21:24:32 PDT 2014
On 7/11/14, 9:10 PM, Walter Bright via Digitalmars-d wrote:
> On 7/11/2014 5:10 PM, Mike wrote:
>> The problem, however, when managing one's own memory is that one cannot use some
>> of the built-in types, like Exceptions, that are instantiated deep within the
>> runtime. A solution to this would likely quiet some of the clamoring, IMO.
>
> 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.
More information about the Digitalmars-d
mailing list