⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (311 Bytes)
Bug #11692
» example1.rb
Example with puts -
gazay (Alex Gaziev)
, 11/15/2015 05:21 PM
class
Foo
def
to_s
puts
self
end
end
Thread
.
new
do
Foo
.
new
.
to_s
end
# Stack overflow exception occured and gc switched off
sleep
1
GC
.
start
full_mark:
true
,
immediate_sweep:
true
if
ObjectSpace
.
each_object
(
Thread
).
count
>
1
raise
'Should be only one thread after GC'
else
puts
'All good'
end
« Previous
1
2
3
…
6
Next »
(1-1/6)
Loading...