[前][次][番号順一覧][スレッド一覧]

ruby-changes:30373

From: ko1 <ko1@a...>
Date: Thu, 8 Aug 2013 19:57:23 +0900 (JST)
Subject: [ruby-changes:30373] ko1:r42442 (trunk): * include/ruby/ruby.h: define USE_RGENGC_LOGGING_WB_UNPROTECT.

ko1	2013-08-08 19:56:52 +0900 (Thu, 08 Aug 2013)

  New Revision: 42442

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42442

  Log:
    * include/ruby/ruby.h: define USE_RGENGC_LOGGING_WB_UNPROTECT.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/ruby.h
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 42441)
+++ include/ruby/ruby.h	(revision 42442)
@@ -1266,7 +1266,11 @@ void rb_gc_writebarrier_unprotect_promot https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1266
 #define OBJ_WRITE(a, slot, b)       rb_obj_write((VALUE)(a), (VALUE *)(slot), (VALUE)(b), __FILE__, __LINE__)
 #define OBJ_WRITTEN(a, oldv, b)     rb_obj_written((VALUE)(a), (VALUE)(oldv), (VALUE)(b), __FILE__, __LINE__)
 
-#if defined(USE_RGENGC_LOGGING_WB_UNPROTECT) && USE_RGENGC_LOGGING_WB_UNPROTECT
+#ifndef USE_RGENGC_LOGGING_WB_UNPROTECT
+#define USE_RGENGC_LOGGING_WB_UNPROTECT 0
+#endif
+
+#if USE_RGENGC_LOGGING_WB_UNPROTECT
 void rb_gc_unprotect_logging(void *objptr, const char *filename, int line);
 #define RGENGC_LOGGING_WB_UNPROTECT rb_gc_unprotect_logging
 #endif
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42441)
+++ ChangeLog	(revision 42442)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Aug  8 19:55:51 2013  Koichi Sasada  <ko1@a...>
+
+	* include/ruby/ruby.h: define USE_RGENGC_LOGGING_WB_UNPROTECT.
+
 Thu Aug  8 16:44:25 2013  Koichi Sasada  <ko1@a...>
 
 	* include/ruby/ruby.h: add old macro name `RUBY_EVENT_SWITCH'.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]