I may have found a bug.

Marco Leise Marco.Leise at gmx.de
Wed May 29 11:02:26 PDT 2013


Am Wed, 29 May 2013 19:05:09 +0200
schrieb Martin Nowak <code at dawg.eu>:

> On 05/29/2013 01:08 PM, Maxim Fomin wrote:
> > Actually it fails because _aaDelX calls gc, and gc is not reenterable.
> > It has nothing to do with static or thread locals.
> Right, you currently can't perform GC operations in a finalizer.
> Removing an element of a hashtable may trigger an internal 
> reorganization which in turn allocates memory.

Can we haz @nogc attributes attached to all dtors behind the
scenes?

-- 
Marco



More information about the Digitalmars-d mailing list