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:
parent
f3d087c77b
commit
06d1660e69
@ -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>
|
Thu Dec 10 02:01:41 2015 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* compile.c (iseq_compile_each): do not add debug information
|
* compile.c (iseq_compile_each): do not add debug information
|
||||||
|
8
proc.c
8
proc.c
@ -1194,12 +1194,6 @@ bm_mark(void *ptr)
|
|||||||
rb_gc_mark((VALUE)data->me);
|
rb_gc_mark((VALUE)data->me);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
bm_free(void *ptr)
|
|
||||||
{
|
|
||||||
xfree(ptr);
|
|
||||||
}
|
|
||||||
|
|
||||||
static size_t
|
static size_t
|
||||||
bm_memsize(const void *ptr)
|
bm_memsize(const void *ptr)
|
||||||
{
|
{
|
||||||
@ -1210,7 +1204,7 @@ static const rb_data_type_t method_data_type = {
|
|||||||
"method",
|
"method",
|
||||||
{
|
{
|
||||||
bm_mark,
|
bm_mark,
|
||||||
bm_free,
|
RUBY_TYPED_DEFAULT_FREE,
|
||||||
bm_memsize,
|
bm_memsize,
|
||||||
},
|
},
|
||||||
0, 0, RUBY_TYPED_FREE_IMMEDIATELY
|
0, 0, RUBY_TYPED_FREE_IMMEDIATELY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user