1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-08-08 10:56:52 +00:00
parent c9d01961f1
commit 3aea31c101
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Aug 8 19:55:51 2013 Koichi Sasada <ko1@atdot.net>
* include/ruby/ruby.h: define USE_RGENGC_LOGGING_WB_UNPROTECT.
Thu Aug 8 16:44:25 2013 Koichi Sasada <ko1@atdot.net>
* include/ruby/ruby.h: add old macro name `RUBY_EVENT_SWITCH'.

View file

@ -1266,7 +1266,11 @@ void rb_gc_writebarrier_unprotect_promoted(VALUE obj);
#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