aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-27 03:20:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-27 03:20:35 +0000
commit09007ccbaa14f81202dfd4c85177241dc2be9f15 (patch)
treef2453edb619097b017cb6563c23e145783c8b402 /vm_core.h
parentf30a5223d3d4a83759c0458bc50636835ec867b2 (diff)
downloadruby-09007ccbaa14f81202dfd4c85177241dc2be9f15.tar.gz
* vm_core.h (rb_vm_t), gc.c (rb_objspace, rb_newobj), vm.c
(Init_BareVM): per-VM object space support, which is disabled now. * gc.c (rb_objspace_alloc), vm.c (Init_BareVM): should not use ruby malloc here. * gc.c (garbage_collect, etc): performance improvement by passing the reference instead of refering the global variable in each functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 1f93f23197..40eb9b3b01 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -312,6 +312,10 @@ typedef struct rb_vm_struct {
/* hook */
rb_event_hook_t *event_hooks;
+
+#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
+ struct rb_objspace *objspace;
+#endif
} rb_vm_t;
typedef struct {