[Issue 9275] [GC] removeRoot hits assert(0) instead of being a no-op (as documented)
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Thu Oct 20 10:58:21 PDT 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=9275
Nemanja Boric <4burgos at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |4burgos at gmail.com
--- Comment #1 from Nemanja Boric <4burgos at gmail.com> ---
Looks like this has been fixed in the meantime:
```
import core.memory;
void main()
{
 // this will work fine
    GC.removeRoot(null);
//this will boom once liner search fails to find '13' among roots
//It does the same with any sane pointer that isn't a root
    GC.removeRoot(cast(void*)13); 
}
```
--
    
    
More information about the Digitalmars-d-bugs
mailing list