diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-29 09:47:06 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-29 09:47:06 +0000 |
commit | 5c1b9b38d69dc2d4b9d6e8f4330ae9e11a22da09 (patch) | |
tree | 8c33e160d7a857c9d59b4b1ad55237ed9cc874be /vm_trace.c | |
parent | 52811ab159e7a9927eba9aa30bc14684ff0852fe (diff) | |
download | ruby-5c1b9b38d69dc2d4b9d6e8f4330ae9e11a22da09.tar.gz |
* 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
Diffstat (limited to 'vm_trace.c')
-rw-r--r-- | vm_trace.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/vm_trace.c b/vm_trace.c index 2371846580..77af93b7bf 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 |