[#47033] [ruby-trunk - Bug #8749][Open] Readline.readline stops STDOUT? — "no6v (Nobuhiro IMAI)" <nov@...>
9 messages
2013/08/07
[#47036] Re: [ruby-trunk - Bug #8749][Open] Readline.readline stops STDOUT?
— Tanaka Akira <akr@...>
2013/08/07
2013/8/7 no6v (Nobuhiro IMAI) <nov@yo.rim.or.jp>:
[#47564] [ruby-trunk - Bug #8719][Open] r42096 make bm_app_factorial.rb slow — "authorNari (Narihiro Nakamura)" <authorNari@...>
4 messages
2013/08/02
[#47565] [ruby-trunk - Bug #8719] r42096 make bm_app_factorial.rb slow
— "authorNari (Narihiro Nakamura)" <authorNari@...>
2013/08/02
[#47569] [ruby-trunk - Feature #8726][Open] Class#source_location — "takiuchi (Genki Takiuchi)" <genki@...21g.com>
14 messages
2013/08/03
[#47574] Re: [ruby-trunk - Feature #8726][Open] Class#source_location
— KOSAKI Motohiro <kosaki.motohiro@...>
2013/08/03
> Classオブジェクトが生成された場所を返す Class#source_location メソッドの実装を希望いたします。
[#47575] Re: [ruby-trunk - Feature #8726][Open] Class#source_location
— KOSAKI Motohiro <kosaki.motohiro@...>
2013/08/03
> なるせさん、わたし、あのバックトレースの整形処理がイマイチ理解できんのだが、
[#47609] Re: [ruby-cvs:49669] naruse:r42527 (trunk): refix r42525 set stdio_file only if stdio — Tanaka Akira <akr@...>
2013/8/12 <naruse@ruby-lang.org>:
7 messages
2013/08/12
[#47610] Re: [ruby-cvs:49669] naruse:r42527 (trunk): refix r42525 set stdio_file only if stdio
— "NARUSE, Yui" <naruse@...>
2013/08/12
あぁ、[ruby-dev:47608]見てませんでした。
[#47611] Re: [ruby-cvs:49669] naruse:r42527 (trunk): refix r42525 set stdio_file only if stdio
— Tanaka Akira <akr@...>
2013/08/12
2013年8月12日 11:38 NARUSE, Yui <naruse@airemix.jp>:
[#47614] Re: [ruby-cvs:49669] naruse:r42527 (trunk): refix r42525 set stdio_file only if stdio
— "NARUSE, Yui" <naruse@...>
2013/08/12
editline の問題は、editlineにはrl_getcがなく、かつreadline.cで、
[#47620] Ruby 2.1 開発者会議 2013-08-31 のお知らせ — "NARUSE, Yui" <naruse@...>
かなり暑いですが、こんにちは。
5 messages
2013/08/14
[#47649] Re: [ruby-changes:30564] akr:r42643 (trunk): * process.c (rb_proc_times): Use RB_GC_GUARD to guard objects from GC. — SASADA Koichi <ko1@...>
akr さん
4 messages
2013/08/21
[#47650] Re: [ruby-changes:30564] akr:r42643 (trunk): * process.c (rb_proc_times): Use RB_GC_GUARD to guard objects from GC.
— Tanaka Akira <akr@...>
2013/08/21
2013/8/21 SASADA Koichi <ko1@atdot.net>:
[#47663] Re: [ruby-core:56878] [ruby-trunk - misc #8835][Open] Introducing a semantic versioning scheme and branching policy — "Akinori MUSHA" <knu@...>
At Fri, 30 Aug 2013 21:49:34 +0900,
6 messages
2013/08/30
[#47664] Re: [ruby-core:56878] [ruby-trunk - misc #8835][Open] Introducing a semantic versioning scheme and branching policy
— KOSAKI Motohiro <kosaki.motohiro@...>
2013/08/30
MjAxMy84LzMwIEFraW5vcmkgTVVTSEEgPGtudUBpZGFlbW9ucy5vcmc+Og0KPiBBdCBGcmksIDMw
[ruby-dev:47649] Re: [ruby-changes:30564] akr:r42643 (trunk): * process.c (rb_proc_times): Use RB_GC_GUARD to guard objects from GC.
From:
SASADA Koichi <ko1@...>
Date:
2013-08-21 12:19:32 UTC
List:
ruby-dev #47649
akr さん
この RB_GC_GUARD って要ります? rb_struct_new() に VALUE を渡した後、使
わないように思うのですが。
(2013/08/21 21:05), akr wrote:
> akr 2013-08-21 21:05:29 +0900 (Wed, 21 Aug 2013)
>
> New Revision: 42643
>
> http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42643
>
> Log:
> * process.c (rb_proc_times): Use RB_GC_GUARD to guard objects from GC.
>
> Modified files:
> trunk/ChangeLog
> trunk/process.c
> Index: ChangeLog
> ===================================================================
> --- ChangeLog (revision 42642)
> +++ ChangeLog (revision 42643)
> @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
> +Wed Aug 21 21:02:37 2013 Tanaka Akira <akr@fsij.org>
> +
> + * process.c (rb_proc_times): Use RB_GC_GUARD to guard objects from GC.
> +
> Wed Aug 21 20:33:01 2013 Tanaka Akira <akr@fsij.org>
>
> * process.c (get_clk_tck): Extracted from rb_proc_times.
> Index: process.c
> ===================================================================
> --- process.c (revision 42642)
> +++ process.c (revision 42643)
> @@ -6641,14 +6641,19 @@ rb_proc_times(VALUE obj) https://github.com/ruby/ruby/blob/trunk/process.c#L6641
> {
> const double hertz = get_clk_tck();
> struct tms buf;
> - volatile VALUE utime, stime, cutime, sctime;
> + VALUE utime, stime, cutime, cstime, ret;
>
> times(&buf);
> - return rb_struct_new(rb_cProcessTms,
> - utime = DBL2NUM(buf.tms_utime / hertz),
> - stime = DBL2NUM(buf.tms_stime / hertz),
> - cutime = DBL2NUM(buf.tms_cutime / hertz),
> - sctime = DBL2NUM(buf.tms_cstime / hertz));
> + utime = DBL2NUM(buf.tms_utime / hertz);
> + stime = DBL2NUM(buf.tms_stime / hertz);
> + cutime = DBL2NUM(buf.tms_cutime / hertz);
> + cstime = DBL2NUM(buf.tms_cstime / hertz);
> + ret = rb_struct_new(rb_cProcessTms, utime, stime, cutime, cstime);
> + RB_GC_GUARD(utime);
> + RB_GC_GUARD(stime);
> + RB_GC_GUARD(cutime);
> + RB_GC_GUARD(cstime);
> + return ret;
> }
> #else
> #define rb_proc_times rb_f_notimplement
>
> --
> ML: ruby-changes@quickml.atdot.net
> Info: http://www.atdot.net/~ko1/quickml/
>
--
// SASADA Koichi at atdot dot net