ruby-changes:48732
From: nobu <ko1@a...>
Date: Sun, 19 Nov 2017 16:07:48 +0900 (JST)
Subject: [ruby-changes:48732] nobu:r60848 (trunk): gc.c: moved ENABLE_VM_OBJSPACE from vm_core.h
nobu 2017-11-19 16:07:42 +0900 (Sun, 19 Nov 2017) New Revision: 60848 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60848 Log: gc.c: moved ENABLE_VM_OBJSPACE from vm_core.h Modified files: trunk/gc.c trunk/vm_core.h Index: gc.c =================================================================== --- gc.c (revision 60847) +++ gc.c (revision 60848) @@ -718,6 +718,19 @@ struct heap_page { https://github.com/ruby/ruby/blob/trunk/gc.c#L718 #define GET_HEAP_MARKING_BITS(x) (&GET_HEAP_PAGE(x)->marking_bits[0]) #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 + /* Aliases */ #if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE #define rb_objspace (*rb_objspace_of(GET_VM())) Index: vm_core.h =================================================================== --- vm_core.h (revision 60847) +++ vm_core.h (revision 60848) @@ -74,19 +74,6 @@ https://github.com/ruby/ruby/blob/trunk/vm_core.h#L74 #include "thread_pthread.h" #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> -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/