[#144] Another implementation of Bignum — "Dmitry Antipov" <dmitry.antipov@...>
Hello Ruby hackers,
15 messages
2002/06/06
[#151] Re: Another implementation of Bignum [tarball attached]
— "Dmitry Antipov" <dmitry.antipov@...>
2002/06/07
Hello again,
[#152] Re: Another implementation of Bignum [tarball attached]
— matz@... (Yukihiro Matsumoto)
2002/06/07
Hi,
[#174] Improving Ruby's garbage collector for interactive apps — Matthew Bloch <mattbee@...>
re: this problem I had a few weeks back:
8 messages
2002/06/19
[#177] Re: Improving Ruby's garbage collector for interactive apps
— matz@... (Yukihiro Matsumoto)
2002/06/20
Hi,
[#178] Re: Improving Ruby's garbage collector for interactive apps
— Matthew Bloch <mattbee@...>
2002/06/21
On Thursday 20 June 2002 18:54, you wrote:
[#186] Steps to get multiple interpreters per process... — Sean Chittenden <sean@...>
Can someone chart out what would need to happen to get multiple ruby
10 messages
2002/06/24
[#187] Re: Steps to get multiple interpreters per process...
— matz@... (Yukihiro Matsumoto)
2002/06/25
Hi,
[#188] Re: Steps to get multiple interpreters per process...
— Sean Chittenden <sean@...>
2002/06/25
> |Can someone chart out what would need to happen to get multiple
[#191] Re: Steps to get multiple interpreters per process...
— Chris Ross <chris@...>
2002/06/25
lib/pstore.rb patch...
From:
Sean Chittenden <sean@...>
Date:
2002-06-20 13:34:38 UTC
List:
ruby-core #175
This patch fixes the possibility of reading from a freshly created/truncated pstore file. Comments? -sc -- Sean Chittenden
Attachments (1)
patch
(712 Bytes, text/x-diff)
Index: lib/pstore.rb
===================================================================
RCS file: /src/ruby/lib/pstore.rb,v
retrieving revision 1.13
diff -u -u -r1.13 pstore.rb
--- lib/pstore.rb 2001/12/01 14:03:19 1.13
+++ lib/pstore.rb 2002/06/20 13:32:23
@@ -97,10 +97,14 @@
@table = Marshal::load(file)
elsif orig
content = file.read
- @table = Marshal::load(content)
- size = content.size
- md5 = Digest::MD5.digest(content)
- content = nil # unreference huge data
+ unless content.nil?
+ @table = Marshal::load(content)
+ size = content.size
+ md5 = Digest::MD5.digest(content)
+ content = nil # unreference huge data
+ else
+ @table = {}
+ end
else
@table = {}
end