summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-11 18:27:18 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-11 18:27:18 +0000
commit52c1331763d8b9b8d6362987e6f8847b65ed7f57 (patch)
tree428a90820733718a0a534bf25e8e626de5b2afb4 /vm_core.h
parent86b2e9d090e9a614400d2ca6f0d24ee5698ad1dd (diff)
* class.c, variable.c, gc.c (rb_class_tbl): removed.
* vm.c, vm_core.h (rb_vm_add_root_module): added to register as a defined root module or class. This guard helps mark miss from defined classes/modules they are only refered from C's global variables in C-exts. Basically, it is extension's bug. Register to hash object VM has. Marking a hash objects allows generational GC supports. * gc.c (RGENGC_PRINT_TICK): disable (revert). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 8510e1688a..1af68a219f 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -400,6 +400,8 @@ typedef struct rb_vm_struct {
struct unlinked_method_entry_list_entry *unlinked_method_entry_list;
+ VALUE defined_module_hash;
+
#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
struct rb_objspace *objspace;
#endif