Actions
Bug #3377
closed100000.times { Time.allocate }: [FATAL] failed to allocate memory
Description
=begin
以下のように
[FATAL] failed to allocate memory
というエラーが出ます。
% ./ruby -ve '100000.times { Time.allocate }'
ruby 1.9.3dev (2010-05-28 trunk 28053) [i686-linux]
[FATAL] failed to allocate memory
ここでは Time オブジェクトをたくさん生成していますが、
参照はすぐに消えるはずなので、GC されてメモリは
足りるはずではないでしょうか。
LazySweep が入る前の r28052 ではエラーにはなりませんでした。
% ./ruby -ve '100000.times { Time.allocate }'
ruby 1.9.3dev (2010-05-28 trunk 28052) [i686-linux]
[田中 哲][たなか あきら][Tanaka Akira]
=end
Updated by authorNari (Narihiro Nakamura) almost 15 years ago
- Assignee set to authorNari (Narihiro Nakamura)
- ruby -v set to ruby 1.9.3dev (2010-05-28 trunk 28053) [i686-linux]
=begin
=end
Updated by Anonymous almost 15 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
This issue was solved with changeset r28185.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
Actions
Like0
Like0Like0