1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

proc.c: remove bm_free, use default

bm_free no longer has special handling of unlinked method
entries since r50728 when method entries were made VALUEs
for GC safety.

* proc.c (bm_free): remove, use default free
  (method_data_type): use RUBY_TYPED_DEFAULT_FREE

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2015-12-09 19:58:48 +00:00
parent f3d087c77b
commit 06d1660e69
2 changed files with 6 additions and 7 deletions

View file

@ -1,3 +1,8 @@
Thu Dec 10 04:49:16 2015 Eric Wong <e@80x24.org>
* proc.c (bm_free): remove, use default free
(method_data_type): use RUBY_TYPED_DEFAULT_FREE
Thu Dec 10 02:01:41 2015 Koichi Sasada <ko1@atdot.net>
* compile.c (iseq_compile_each): do not add debug information

8
proc.c
View file

@ -1194,12 +1194,6 @@ bm_mark(void *ptr)
rb_gc_mark((VALUE)data->me);
}
static void
bm_free(void *ptr)
{
xfree(ptr);
}
static size_t
bm_memsize(const void *ptr)
{
@ -1210,7 +1204,7 @@ static const rb_data_type_t method_data_type = {
"method",
{
bm_mark,
bm_free,
RUBY_TYPED_DEFAULT_FREE,
bm_memsize,
},
0, 0, RUBY_TYPED_FREE_IMMEDIATELY