mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* iseq.c (iseq_memsize): functions for wrapper object should have
iseqw_ prefix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ebb03a0b82
commit
970399a9ae
2 changed files with 13 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Sep 4 04:46:54 2015 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* iseq.c (iseq_memsize): functions for wrapper object should have
|
||||||
|
iseqw_ prefix.
|
||||||
|
|
||||||
Thu Sep 3 21:12:12 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Sep 3 21:12:12 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/cgi/session.rb (create_new_id): use SHA512 instead of MD5.
|
* lib/cgi/session.rb (create_new_id): use SHA512 instead of MD5.
|
||||||
|
|
11
iseq.c
11
iseq.c
|
@ -143,9 +143,8 @@ param_keyword_size(const struct rb_iseq_param_keyword *pkw)
|
||||||
}
|
}
|
||||||
|
|
||||||
static size_t
|
static size_t
|
||||||
iseq_memsize(const void *ptr)
|
iseq_memsize(const rb_iseq_t *iseq)
|
||||||
{
|
{
|
||||||
const rb_iseq_t *iseq = ptr;
|
|
||||||
size_t size = 0; /* struct already counted as RVALUE size */
|
size_t size = 0; /* struct already counted as RVALUE size */
|
||||||
const struct rb_iseq_variable_body *variable_body;
|
const struct rb_iseq_variable_body *variable_body;
|
||||||
const struct rb_iseq_constant_body *body;
|
const struct rb_iseq_constant_body *body;
|
||||||
|
@ -681,9 +680,15 @@ iseqw_mark(void *ptr)
|
||||||
rb_gc_mark((VALUE)ptr);
|
rb_gc_mark((VALUE)ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static size_t
|
||||||
|
iseqw_memsize(const void *ptr)
|
||||||
|
{
|
||||||
|
return iseq_memsize((const rb_iseq_t *)ptr);
|
||||||
|
}
|
||||||
|
|
||||||
static const rb_data_type_t iseqw_data_type = {
|
static const rb_data_type_t iseqw_data_type = {
|
||||||
"T_IMEMO/iseq",
|
"T_IMEMO/iseq",
|
||||||
{iseqw_mark, NULL, iseq_memsize,},
|
{iseqw_mark, NULL, iseqw_memsize,},
|
||||||
0, 0, RUBY_TYPED_FREE_IMMEDIATELY|RUBY_TYPED_WB_PROTECTED
|
0, 0, RUBY_TYPED_FREE_IMMEDIATELY|RUBY_TYPED_WB_PROTECTED
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue