From 7ea416f4c33631d76fd5b12830c0d326803061c1 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Fri, 25 Jun 2010 23:57:30 -0700 Subject: Add callable gc method exposed to user code, use it in mlist-cycle.rs test (still not quite working; some memory corruption in the recursive tag constructors, not the GC) --- src/lib/sys.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib') diff --git a/src/lib/sys.rs b/src/lib/sys.rs index 84da28f7..3d858413 100644 --- a/src/lib/sys.rs +++ b/src/lib/sys.rs @@ -3,5 +3,6 @@ native "rust" mod rustrt { fn size_of[T]() -> uint; fn align_of[T]() -> uint; fn refcount[T](@T t) -> uint; + fn gc(); } -- cgit v1.2.3