[ruby-core:62745] [PATCH] remove rb_vm_living_threads_foreach wrapper

From: Eric Wong <normalperson@...>
Date: 2014-05-25 09:08:00 UTC
List: ruby-core #62745
normal@ruby-lang.org wrote:
>   New Revision: 45913
>     * vm.c (rb_vm_living_threads_foreach): new function wrapper

This function wrapper was a mistake.

The use of callbacks was confusing and was only necessary
for the old st_foreach API.  Simplify the code by eliminating
extraneous callbacks and casts.
---
 thread.c   | 206 +++++++++++++++++++++++++++----------------------------------
 vm.c       |  34 ++--------
 vm_core.h  |   1 -
 vm_trace.c |  14 ++---
 4 files changed, 103 insertions(+), 152 deletions(-)

Code removal is good :)  Will commit in a few days:
	http://bogomips.org/ruby.git/patch?id=c38b958caeeb18

In This Thread

Prev Next