summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--vm_trace.c8
2 files changed, 6 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 87b0578..e043c3b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Oct 29 18:45:08 2013 Koichi Sasada <ko1@atdot.net>
+
+ * vm_trace.c (tp_free): remvoed because empty free function.
+ Use RUBY_TYPED_NEVER_FREE instead.
+
Tue Oct 29 18:37:33 2013 Koichi Sasada <ko1@atdot.net>
* include/ruby/ruby.h: introduce new flags for T_TYPEDDATA.
diff --git a/vm_trace.c b/vm_trace.c
index 2371846..77af93b 100644
--- a/vm_trace.c
+++ b/vm_trace.c
@@ -621,12 +621,6 @@ tp_mark(void *ptr)
}
}
-static void
-tp_free(void *ptr)
-{
- /* do nothing */
-}
-
static size_t
tp_memsize(const void *ptr)
{
@@ -635,7 +629,7 @@ tp_memsize(const void *ptr)
static const rb_data_type_t tp_data_type = {
"tracepoint",
- {tp_mark, tp_free, tp_memsize,},
+ {tp_mark, RUBY_TYPED_NEVER_FREE, tp_memsize,},
};
static VALUE