зеркало из https://github.com/github/ruby.git
* variable.c (rb_generic_ivar_memsize): typo fixed. a patch from
Kazuhiro NISHIYAMA. [ruby-dev:38700] * ext/objspace/objspace.c (memsize_of): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
fc64028291
Коммит
e0d24f31ed
|
@ -1,3 +1,10 @@
|
||||||
|
Mon Jun 22 23:24:22 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* variable.c (rb_generic_ivar_memsize): typo fixed. a patch from
|
||||||
|
Kazuhiro NISHIYAMA. [ruby-dev:38700]
|
||||||
|
|
||||||
|
* ext/objspace/objspace.c (memsize_of): ditto.
|
||||||
|
|
||||||
Mon Jun 22 21:21:59 2009 Tanaka Akira <akr@fsij.org>
|
Mon Jun 22 21:21:59 2009 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* io.c: remove __CHECKER__ test.
|
* io.c: remove __CHECKER__ test.
|
||||||
|
|
|
@ -34,7 +34,7 @@ size_t rb_ary_memsize(VALUE);
|
||||||
size_t st_memsize(st_table *);
|
size_t st_memsize(st_table *);
|
||||||
size_t rb_io_memsize(rb_io_t *);
|
size_t rb_io_memsize(rb_io_t *);
|
||||||
size_t onig_memsize(regex_t *);
|
size_t onig_memsize(regex_t *);
|
||||||
size_t rb_geneic_ivar_memsize(VALUE);
|
size_t rb_generic_ivar_memsize(VALUE);
|
||||||
size_t rb_objspace_data_type_memsize(VALUE obj);
|
size_t rb_objspace_data_type_memsize(VALUE obj);
|
||||||
|
|
||||||
void rb_objspace_each_objects(
|
void rb_objspace_each_objects(
|
||||||
|
@ -51,7 +51,7 @@ memsize_of(VALUE obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FL_TEST(obj, FL_EXIVAR)) {
|
if (FL_TEST(obj, FL_EXIVAR)) {
|
||||||
size += rb_geneic_ivar_memsize(obj);
|
size += rb_generic_ivar_memsize(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (BUILTIN_TYPE(obj)) {
|
switch (BUILTIN_TYPE(obj)) {
|
||||||
|
|
|
@ -920,7 +920,7 @@ rb_free_generic_ivar(VALUE obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
rb_geneic_ivar_memsize(VALUE obj)
|
rb_generic_ivar_memsize(VALUE obj)
|
||||||
{
|
{
|
||||||
st_data_t tbl;
|
st_data_t tbl;
|
||||||
if (st_delete(generic_iv_tbl, &obj, &tbl))
|
if (st_delete(generic_iv_tbl, &obj, &tbl))
|
||||||
|
|
Загрузка…
Ссылка в новой задаче