[#39845] Re: [ruby-cvs:33238] Ruby:r26022 (trunk): * marshal.c (w_object): dump instance variables when using — Tanaka Akira <akr@...>
2009/12/5 <nobu@ruby-lang.org>:
3 messages
2009/12/06
[#39846] [Bug #2447] reduce GC pressure by symbol table without String instance — Yusuke Endoh <redmine@...>
Bug #2447: reduce GC pressure by symbol table without String instance
5 messages
2009/12/06
[#39847] stable find.rb — Tanaka Akira <akr@...>
ディレクトリを再帰的にたどった結果を比較することがあったのですが、
5 messages
2009/12/06
[#39851] Time.now + str と #to_r — Yukihiro Matsumoto <matz@...>
まつもと ゆきひろです
9 messages
2009/12/07
[#39852] Re: Time.now + str と #to_r
— "NARUSE, Yui" <naruse@...>
2009/12/07
成瀬です。
[#39855] [RubySpec #2460] RubySpecでFiberのSpecがおちる — 三村 益隆 <redmine@...>
RubySpec #2460: RubySpecでFiberのSpecがおちる
4 messages
2009/12/08
[#39863] [Feature #2471] want to choose a GC algorithm — _ wanabe <redmine@...>
Feature #2471: want to choose a GC algorithm
8 messages
2009/12/09
[#39874] faster Enumerator#each by rb_block_call with current block — Yusuke ENDOH <mame@...>
遠藤です。
7 messages
2009/12/13
[#39894] Re: faster Enumerator#each by rb_block_call with current block
— Yukihiro Matsumoto <matz@...>
2009/12/19
まつもと ゆきひろです
[#39897] Re: faster Enumerator#each by rb_block_call with current block
— Yusuke ENDOH <mame@...>
2009/12/20
遠藤です。
[#39912] [Bug #2522] Segmentation Fault is occurred on r26158 by running rubyspec — Kenta Murata <redmine@...>
Bug #2522: Segmentation Fault is occurred on r26158 by running rubyspec
4 messages
2009/12/23
[ruby-dev:39845] Re: [ruby-cvs:33238] Ruby:r26022 (trunk): * marshal.c (w_object): dump instance variables when using
From:
Tanaka Akira <akr@...>
Date:
2009-12-06 00:29:34 UTC
List:
ruby-dev #39845
2009/12/5 <nobu@ruby-lang.org>:
> nobu 2009-12-05 19:25:28 +0900 (Sat, 05 Dec 2009)
>
> New Revision: 26022
>
> http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26022
>
> Log:
> * marshal.c (w_object): dump instance variables when using
> marshal_dump. [ruby-core:24211]
>
> * variable.c (rb_ivar_count): added.
そうやって dump すると、dump できないものが入っていたときに
dump 不能になります。
% ./ruby -ve '
class C
def initialize
@a = 1
@cache = STDIN
end
def marshal_dump
[@a]
end
def marshal_load(arg)
@a = arg[0]
end
end
p Marshal.dump(C.new)
'
ruby 1.9.2dev (2009-12-06 trunk 26025) [i686-linux]
-e:16:in `dump': can't dump IO (TypeError)
from -e:16:in `<main>'
以前、[ruby-dev:21475] でも指摘したことがありますが。
--
[田中 哲][たなか あきら][Tanaka Akira]