General

Profile

shiba (satoshi shiba)

  • Login: shiba
  • Email: shiba@rvm.jp
  • Registered on: 09/06/2011
  • Last sign in: 05/04/2012

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

02/13/2012

09:43 AM Ruby Bug #3924: Performance bug (in require?)
Luis Lavena wrote:
> satoshi shiba wrote:
> ...
Thank you for telling me.
I have missed that ticket.
shiba (satoshi shiba)

02/12/2012

12:20 PM Ruby Bug #3924: Performance bug (in require?)
Hi,
Yusuke ENDOH wrote:
> Hi,
> ...
May I ask current status of this problem?
"rb_file_expand_path()" is still a bottleneck of "rb_require_safe()".
So, I'm interested in this problem.
If memory leak is a problem, how about collecting s...
shiba (satoshi shiba)

12/23/2011

05:45 PM Ruby Bug #5801: Enumerable#take_while の proc を外に出して使うと Segv
Enumerable#grep なども同様の問題がありますね。
以下の再現コードで Segv を吐きます。
enum.c で、XX_i という形の関数の第二引数が C の
スタックへのポインタになってるやつは、全部同じ問題を
含んでいるのではないでしょうか。
# 再現コード
~~~ruby
class A
include Enumerable
def each(&b)
$block = b
yield
end
...
shiba (satoshi shiba)
05:31 PM Ruby Bug #5801 (Closed): Enumerable#take_while の proc を外に出して使うと Segv
芝と申します。
下の再現コードのように、`Enumerable#take_while` の Proc を
外に出して使うと Segv が発生します。
~~~ruby
# 再現コード
class A
include Enumerable
def each(&b)
$block = b
yield
end
end
puts A.new.take_while{true}
100.times{$block.call}...
shiba (satoshi shiba)

09/06/2011

10:05 PM Ruby Bug #5283 (Closed): クラスオブジェクトの clone に関する質問
=begin
芝と申します。
クラスオブジェクトを clone したときの挙動について質問させてください。
+ サンプルコード
String.class_eval do
def self.singleton_method_added(mid)
puts("singleton_method_added: self = #{self}, mid = #{mid}")
end
end

puts("start clone"...
shiba (satoshi shiba)

Also available in: Atom