[#101179] Spectre Mitigations — Amel <amel.smajic@...>
Hi there!
5 messages
2020/12/01
[#101694] Ruby 3.0.0 Released — "NARUSE, Yui" <naruse@...>
V2UgYXJlIHBsZWFzZWQgdG8gYW5ub3VuY2UgdGhlIHJlbGVhc2Ugb2YgUnVieSAzLjAuMC4gRnJv
4 messages
2020/12/25
[ruby-core:101204] [Ruby master Bug#17360] Objects disappear from ObjectSpace after using Ractor
From:
daniel@...42.com
Date:
2020-12-02 14:52:05 UTC
List:
ruby-core #101204
Issue #17360 has been reported by Dan0042 (Daniel DeLorme).
----------------------------------------
Bug #17360: Objects disappear from ObjectSpace after using Ractor
https://bugs.ruby-lang.org/issues/17360
* Author: Dan0042 (Daniel DeLorme)
* Status: Open
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
Test:
```ruby
GC.disable
STR = -"testing 123"
x = STR.dup
puts "before:"
ObjectSpace.each_object(String){ |s| puts s.object_id if s == STR }
Ractor.new{ }.take
puts "after:"
ObjectSpace.each_object(String){ |s| puts s.object_id if s == STR }
```
Result:
```
before:
60
80
100
<internal:ractor>:38: warning: Ractor is experimental, and the behavior may change in future versions of Ruby! Also there are many implementation issues.
after:
80
```
Expected result:
Same object ids should be printed before and after
(BTW why 3 strings with the same value? shouldn't it be 2?)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>