diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-20 01:17:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-20 01:17:43 +0000 |
commit | e33b1690d06f867e45750bd8e3e8b06d78b5bc26 (patch) | |
tree | 645a0e7e7129e130a60ef46f835beb032184f767 /gc.c | |
parent | fa326994aee83d1c1cd4b7cda9ae0d2631d0a13e (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.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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 */ |