summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-20 01:17:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-20 01:17:43 +0000
commite33b1690d06f867e45750bd8e3e8b06d78b5bc26 (patch)
tree645a0e7e7129e130a60ef46f835beb032184f767 /gc.c
parentfa326994aee83d1c1cd4b7cda9ae0d2631d0a13e (diff)
win32.c: vm_exit_handler
* win32/win32.c (vm_exit_handler): separate exit handler for resources which must be released at exit of Ruby VM. * win32/win32.c (socklist_insert, constat_handle): install the VM exit handler. * gc.c (ENABLE_VM_OBJSPACE): no longer needs process global object space on Windows too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/gc.c b/gc.c
index d5b805da71..2fdfedf8a8 100644
--- a/gc.c
+++ b/gc.c
@@ -719,16 +719,7 @@ struct heap_page {
#endif
#ifndef ENABLE_VM_OBJSPACE
-# ifdef _WIN32
-/*
- * TODO: object space independent st_table.
- * socklist and conlist will be freed exit_handler(), after object
- * space destruction.
- */
-# define ENABLE_VM_OBJSPACE 0
-# else
-# define ENABLE_VM_OBJSPACE 1
-# endif
+# define ENABLE_VM_OBJSPACE 1
#endif
/* Aliases */