зеркало из https://github.com/github/ruby.git
Mark Encoding as Write Barrier protected
It doesn't even have a mark function. It's only about a hundred objects, but not reason to scan them every time.
This commit is contained in:
Родитель
6e4c242130
Коммит
60c924770d
|
@ -102,7 +102,7 @@ static rb_encoding *global_enc_ascii,
|
|||
static const rb_data_type_t encoding_data_type = {
|
||||
"encoding",
|
||||
{0, 0, 0,},
|
||||
0, 0, RUBY_TYPED_FREE_IMMEDIATELY
|
||||
0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
|
||||
};
|
||||
|
||||
#define is_data_encoding(obj) (RTYPEDDATA_P(obj) && RTYPEDDATA_TYPE(obj) == &encoding_data_type)
|
||||
|
|
Загрузка…
Ссылка в новой задаче