aboutsummaryrefslogtreecommitdiff
path: root/src/lib/sys.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-06-25 23:57:30 -0700
committerGraydon Hoare <[email protected]>2010-06-25 23:57:30 -0700
commit7ea416f4c33631d76fd5b12830c0d326803061c1 (patch)
tree20639257bfd83ca3f6355de01958fc8cee786237 /src/lib/sys.rs
parentFurther attempts to convince mem_ctrl to be sane. (diff)
downloadrust-7ea416f4c33631d76fd5b12830c0d326803061c1.tar.xz
rust-7ea416f4c33631d76fd5b12830c0d326803061c1.zip
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)
Diffstat (limited to 'src/lib/sys.rs')
-rw-r--r--src/lib/sys.rs1
1 files changed, 1 insertions, 0 deletions
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();
}