comparison tango/lib/gc/basic/gc.d @ 213:7816aafeea3c trunk

[svn r229] Updated the object.d implementation to the latest Tango. Fixed a bunch of the built-in typeinfos for arrays, they did not inherit TypeInfo_Array. Applied patch to tango/text/convert/Layout.d by fvbommel, closes #47 . Cleaned up some type code. Replaced uses of llvm::Type with LLType (a typedef), same for Value and Constant. Fixed a few cases where typeinfo for user structs could be emitted multiple times, seems to still be some cases of this :/
author lindquist
date Fri, 30 May 2008 19:32:04 +0200
parents 1700239cab2e
children 4d006f7b2ada
comparison
equal deleted inserted replaced
212:4c2689d57ba4 213:7816aafeea3c
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 {
72 _gc.fullCollectNoStack(); // not really a 'collect all' -- still scans 78 _gc.fullCollectNoStack(); // not really a 'collect all' -- still scans
73 // static data area, roots, and ranges. 79 // static data area, roots, and ranges.
80 }
74 _gc.Dtor(); 81 _gc.Dtor();
75 } 82 }
76 83
77 extern (C) void gc_enable() 84 extern (C) void gc_enable()
78 { 85 {