From 3477670963c7cc4d929e5196369f5327421ff62d Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 13 Dec 2013 02:53:27 +0000 Subject: [PATCH] * array.c: fix comment to remove the word "shady". * variable.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ array.c | 4 ++-- variable.c | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4e910e6aaf..0d8eccd168 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Dec 13 11:52:41 2013 Koichi Sasada + + * array.c: fix comment to remove the word "shady". + + * variable.c: ditto. + Fri Dec 13 11:33:55 2013 Koichi Sasada * gc.c: rename *shady* func/macros. diff --git a/array.c b/array.c index 11268222f3..b9983a62c7 100644 --- a/array.c +++ b/array.c @@ -90,7 +90,7 @@ ary_memcpy(VALUE ary, long beg, long argc, const VALUE *argv) }); } #else - /* use shady (traditional way) */ + /* giveup write barrier (traditional way) */ MEMCPY(RARRAY_PTR(ary)+beg, argv, VALUE, argc); #endif } @@ -576,7 +576,7 @@ ary_make_shared(VALUE ary) } else { long capa = ARY_CAPA(ary), len = RARRAY_LEN(ary); - NEWOBJ_OF(shared, struct RArray, 0, T_ARRAY); /* keep shared ary as shady */ + NEWOBJ_OF(shared, struct RArray, 0, T_ARRAY); /* keep shared ary as non-WB-protected */ FL_UNSET_EMBED(shared); ARY_SET_LEN((VALUE)shared, capa); diff --git a/variable.c b/variable.c index 5d200bb992..f2cb4542de 100644 --- a/variable.c +++ b/variable.c @@ -2185,7 +2185,7 @@ rb_const_set(VALUE klass, ID id, VALUE val) if (load && (ele = check_autoload_data(load)) && (ele->thread == rb_thread_current())) { rb_clear_constant_cache(); - ele->value = val; /* autoload_i is shady */ + ele->value = val; /* autoload_i is non-WB-protected */ return; } /* otherwise, allow to override */