mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
d8f619e1a7
commit
3477670963
3 changed files with 9 additions and 3 deletions
|
@ -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.
|
||||
|
|
4
array.c
4
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);
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue