aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-16 12:14:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-16 12:14:52 +0000
commit0d707d608fc79417f372aeedbfe3e674a2e42c57 (patch)
tree84f1d9b5f2437becc2e2dfab5087079c5508c4de /vm_core.h
parentd22c6ec4bd05292966b2ef70b841b0c85cd1624e (diff)
downloadruby-0d707d608fc79417f372aeedbfe3e674a2e42c57.tar.gz
vm_core.h: revert VM objspace on Windows
* vm_core.h (ENABLE_VM_OBJSPACE): disable now, as socklist and conlist will be freed exit_handler(), after object space destruction. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 8c44b2d018..4b7d946e1f 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -49,8 +49,17 @@
#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
+#endif
#include <setjmp.h>
#include <signal.h>