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

* vm_trace.c (tp_free): remvoed because empty free function.

Use RUBY_TYPED_NEVER_FREE instead.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-10-29 09:47:06 +00:00
parent 52811ab159
commit 5c1b9b38d6
2 changed files with 6 additions and 7 deletions

View file

@ -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.

View file

@ -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