comparison tango/lib/gc/basic/gc.d @ 243:4d006f7b2ada trunk

[svn r260] Changed some of the LLVMDC specific code in the Tango core and did some minor cleanups.
author lindquist
date Mon, 09 Jun 2008 03:02:14 +0200
parents 7816aafeea3c
children 88252a1af660
comparison
equal deleted inserted replaced
242:ab43d1e1bf2a 243:4d006f7b2ada
67 // I'm disabling cleanup for now until I can think about it some 67 // I'm disabling cleanup for now until I can think about it some
68 // more. 68 // more.
69 // 69 //
70 // NOTE: Due to popular demand, this has been re-enabled. It still has 70 // NOTE: Due to popular demand, this has been re-enabled. It still has
71 // the problems mentioned above though, so I guess we'll see. 71 // the problems mentioned above though, so I guess we'll see.
72 version(LLVMDC)
73 {
74 // currently crashes a lot
75 }
76 else
77 {
78 _gc.fullCollectNoStack(); // not really a 'collect all' -- still scans 72 _gc.fullCollectNoStack(); // not really a 'collect all' -- still scans
79 // static data area, roots, and ranges. 73 // static data area, roots, and ranges.
80 }
81 _gc.Dtor(); 74 _gc.Dtor();
82 } 75 }
83 76
84 extern (C) void gc_enable() 77 extern (C) void gc_enable()
85 { 78 {