summaryrefslogtreecommitdiff
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
parentf3d087c77bc592075c7dec752c3f40c7da7b58a8 (diff)
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
-rw-r--r--ChangeLog5
-rw-r--r--proc.c8
2 files changed, 6 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b9dee6a94b..f45d0730a53 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/proc.c b/proc.c
index f25fd77add1..a43c798a84d 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