summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-24 13:51:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-24 13:51:59 +0000
commit4acc61313fbe98a7249acd6eff264e3d0c4209c4 (patch)
tree8a69ef0ba5afb4aa7411e15889b5141d8eecff4f /eval.c
parentd3b2d870bfbb60955d914aa0a288f69fa9614c10 (diff)
* vm.c (ruby_vm_destruct): run vm exit hooks after all objects are
destructed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/eval.c b/eval.c
index 18ea100cc2..bbf66b3152 100644
--- a/eval.c
+++ b/eval.c
@@ -129,9 +129,6 @@ ruby_cleanup(volatile int ex)
int nerr;
void rb_threadptr_interrupt(rb_thread_t *th);
void rb_threadptr_check_signal(rb_thread_t *mth);
- long i;
- rb_vm_t *vm = GET_VM();
- VALUE ary = (VALUE)&vm->at_exit;
rb_threadptr_interrupt(th);
rb_threadptr_check_signal(th);
@@ -165,13 +162,6 @@ ruby_cleanup(volatile int ex)
POP_TAG();
rb_thread_stop_timer_thread();
- /* at_exit functions called here; any other place more apropriate
- * for this purpose? let me know if any. */
- for (i=RARRAY_LEN(ary) - 1; i>=0; i--) {
- ((void(*)(rb_vm_t*))RARRAY_PTR(ary)[i])(vm);
- }
- rb_ary_free(ary);
-
#if EXIT_SUCCESS != 0 || EXIT_FAILURE != 1
switch (ex) {
#if EXIT_SUCCESS != 0