Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 2464

Show
Ignore:
Timestamp:
07/20/07 04:03:03 (1 year ago)
Author:
sean
Message:

Disabled GC cleanup routine, since daemon threads will still be active when it is called. The shutdown process may have to change somewhat if a full cleanup is expected.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/gc/basic/gc.d

    r2292 r2464  
    6161extern (C) void gc_term() 
    6262{ 
    63     //_gc.fullCollectNoStack(); 
    64     _gc.Dtor(); 
     63    // NOTE: There may be daemons threads still running when this routine is 
     64    //       called.  If so, cleaning memory out from under then is a good 
     65    //       way to make them crash horribly.  This probably doesn't matter 
     66    //       much since the app is supposed to be shutting down anyway, but 
     67    //       I'm disabling cleanup for now until I can think about it some 
     68    //       more. 
     69    //_gc.fullCollectNoStack(); // not really a 'collect all' -- still scans 
     70                                // static data area, roots, and ranges. 
     71    //_gc.Dtor(); 
    6572} 
    6673