aboutsummaryrefslogtreecommitdiff
path: root/src/rt/rust_crate.cpp
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-06-25 16:54:03 -0700
committerGraydon Hoare <[email protected]>2010-06-25 16:54:03 -0700
commiteed5c0aa249f3e17bbabeeba1650ab699e3dff5a (patch)
tree0bf4084dcf90be6a889c8283fe6c3dbf775f3491 /src/rt/rust_crate.cpp
parentEmit gc glue and rearrange crate glue offsets slightly to have a regular order. (diff)
downloadrust-eed5c0aa249f3e17bbabeeba1650ab699e3dff5a.tar.xz
rust-eed5c0aa249f3e17bbabeeba1650ab699e3dff5a.zip
Add rust_task::gc(size_t args) method that drops us back into the GC glue.
Diffstat (limited to 'src/rt/rust_crate.cpp')
-rw-r--r--src/rt/rust_crate.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rt/rust_crate.cpp b/src/rt/rust_crate.cpp
index d609ac64..36978270 100644
--- a/src/rt/rust_crate.cpp
+++ b/src/rt/rust_crate.cpp
@@ -27,6 +27,11 @@ rust_crate::get_unwind_glue() const {
}
uintptr_t
+rust_crate::get_gc_glue() const {
+ return ((uintptr_t)this + gc_glue_off);
+}
+
+uintptr_t
rust_crate::get_yield_glue() const {
return ((uintptr_t)this + yield_glue_off);
}