aboutsummaryrefslogtreecommitdiffstats
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
commit0a0dd9bf30e25eb7497ed5b788af2438293ff395 (patch)
tree645a0e7e7129e130a60ef46f835beb032184f767 /gc.c
parent321620aae36186c8de75f2950eb9c0cda338c407 (diff)
downloadruby-0a0dd9bf30e25eb7497ed5b788af2438293ff395.tar.gz
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 */