* 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
This commit is contained in:
ko1 2013-12-13 02:53:27 +00:00
Родитель d8f619e1a7
Коммит 3477670963
3 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Fri Dec 13 11:52:41 2013 Koichi Sasada <ko1@atdot.net>
* array.c: fix comment to remove the word "shady".
* variable.c: ditto.
Fri Dec 13 11:33:55 2013 Koichi Sasada <ko1@atdot.net>
* gc.c: rename *shady* func/macros.

Просмотреть файл

@ -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);

Просмотреть файл

@ -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 */