ruby-changes:48430
From: ko1 <ko1@a...>
Date: Sun, 29 Oct 2017 22:51:41 +0900 (JST)
Subject: [ruby-changes:48430] ko1:r60544 (trunk): remove rb_threadptr_during_gc().
ko1 2017-10-29 22:51:37 +0900 (Sun, 29 Oct 2017) New Revision: 60544 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60544 Log: remove rb_threadptr_during_gc(). * gc.c (rb_threadptr_during_gc): removed because nobody use it. Modified files: trunk/gc.c trunk/gc.h Index: gc.c =================================================================== --- gc.c (revision 60543) +++ gc.c (revision 60544) @@ -6745,13 +6745,6 @@ rb_during_gc(void) https://github.com/ruby/ruby/blob/trunk/gc.c#L6745 return during_gc; } -int -rb_threadptr_during_gc(rb_thread_t *th) -{ - rb_objspace_t *objspace = rb_objspace_of(th->vm); - return during_gc; -} - #if RGENGC_PROFILE >= 2 static const char *type_name(int type, VALUE obj); Index: gc.h =================================================================== --- gc.h (revision 60543) +++ gc.h (revision 60544) @@ -91,7 +91,6 @@ const char *rb_raw_obj_info(char *buff, https://github.com/ruby/ruby/blob/trunk/gc.h#L91 void rb_obj_info_dump(VALUE obj); struct rb_thread_struct; -int rb_threadptr_during_gc(struct rb_thread_struct *th); RUBY_SYMBOL_EXPORT_BEGIN -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/