⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (312 Bytes)
Bug #10961
» bug10961.rb
wanabe (_ wanabe)
, 03/05/2021 07:47 AM
require
'zlib'
Signal
.
trap
(
"INT"
)
{}
str
=
(
"A"
..
"z"
).
to_a
.
join
(
""
)
*
100000
20
.
times
do
|
i
|
str
<<
str
.
dup
spawn
(
"ruby"
,
"-e"
,
<<~
"end;"
,
$$
.
to_s
)
# it must be out of GVL
sleep
0.1
begin
Process
.
kill
:INT
,
ARGV
[
0
].
to_i
rescue
Errno
::
ESRCH
end
end
;
Zlib
::
Deflate
.
deflate
(
str
)
end
« Previous
1
2
Next »
(2-2/2)
Loading...