summaryrefslogtreecommitdiffstats
path: root/yarvcore.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-24 02:47:22 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-24 02:47:22 +0000
commit9c5e5550ec20b2f841efd277a92ff26ebc87cec0 (patch)
tree5d2bbd9c33fb0344da8aae6f8a2f3aed0565a9de /yarvcore.c
parentf4038b58e7c9522f4d22aa2f3bea6840f179c856 (diff)
downloadruby-9c5e5550ec20b2f841efd277a92ff26ebc87cec0.tar.gz
ruby-9c5e5550ec20b2f841efd277a92ff26ebc87cec0.tar.xz
ruby-9c5e5550ec20b2f841efd277a92ff26ebc87cec0.zip
* gc.c, yarvcore.c: fix to mark VM structure on startup.
* yarvcore.h: disable USE_CACHED_VALUE. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'yarvcore.c')
-rw-r--r--yarvcore.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/yarvcore.c b/yarvcore.c
index 21346f909..b266bf695 100644
--- a/yarvcore.c
+++ b/yarvcore.c
@@ -12,7 +12,6 @@
#include "ruby.h"
#include "node.h"
-
#include "yarvcore.h"
#include "gc.h"
@@ -192,6 +191,7 @@ vm_mark(void *ptr)
MARK_UNLESS_NULL(vm->mark_object_ary);
MARK_UNLESS_NULL(vm->last_status);
MARK_UNLESS_NULL(vm->loaded_features);
+
if (vm->loading_table) {
rb_mark_tbl(vm->loading_table);
}
@@ -202,6 +202,12 @@ vm_mark(void *ptr)
MARK_REPORT_LEAVE("vm");
}
+void
+rb_vm_mark(void *ptr)
+{
+ vm_mark(ptr);
+}
+
static VALUE
vm_alloc(VALUE klass)
{