diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-18 07:29:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-18 07:29:17 +0000 |
commit | d482ac18c5cb70a3f888f335cd9a32b196a558bc (patch) | |
tree | df6b3edc1d6715dd11be75675f5ec55c54d3fa11 /vm_core.h | |
parent | 1a1fb4309ac4ad58c9fb169d775f813c395f53fb (diff) | |
download | ruby-d482ac18c5cb70a3f888f335cd9a32b196a558bc.tar.gz ruby-d482ac18c5cb70a3f888f335cd9a32b196a558bc.tar.xz ruby-d482ac18c5cb70a3f888f335cd9a32b196a558bc.zip |
* common.mk (eval.o): needs vm.h.
* eval.c (ruby_cleanup): destruct current VM before exit.
* gc.c (rb_objspace_free): free object space.
* vm.c (ruby_vm_destruct): destruct and free VM struct.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -31,6 +31,10 @@ #error "unsupported thread type" #endif +#ifndef ENABLE_VM_OBJSPACE +#define ENABLE_VM_OBJSPACE 1 +#endif + #include <setjmp.h> #include <signal.h> @@ -239,6 +243,11 @@ enum ruby_special_exceptions { #define GetVMPtr(obj, ptr) \ GetCoreDataFromValue(obj, rb_vm_t, ptr) +#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE +struct rb_objspace; +void rb_objspace_free(struct rb_objspace *); +#endif + typedef struct rb_vm_struct { VALUE self; |