summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 19:58:48 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 19:58:48 +0000
commit06d1660e690c78ceb4a46117d11a3afae7240205 (patch)
tree6329d2cd07ae4627c67b667d1ca8a49c65b67ba3 /proc.c
parentf3d087c77bc592075c7dec752c3f40c7da7b58a8 (diff)
downloadruby-06d1660e690c78ceb4a46117d11a3afae7240205.tar.gz
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
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/proc.c b/proc.c
index f25fd77add..a43c798a84 100644
--- a/proc.c
+++ b/proc.c
@@ -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