Backport #6953
closedmingw: test_thread.rb fails - can't create Thread (12)
Description
=begin
Hello,
Recently I've enabled 64bits builds for Windows (using x86_64-w64-mingw32 compiler) and found that ((%make test%)) fails:
#943 test_thread.rb:
begin
10000.times { Thread.new(true) {|x| x == false } }
rescue NoMemoryError, StandardError
end
:ok
#=> "" (expected "ok")
FAIL 1/947 tests failed
You can see the entire compilation output here:
http://ci.rubyinstaller.org/view/All/job/ruby-1_9_3-x64-build/3/console
Thing is that x86 build does not fail:
http://ci.rubyinstaller.org/view/All/job/ruby-1_9_3-x86-build/5/console
Compared this with latest official released (1.9.3-p194) it fails in a similar way:
V:>ruby -v a.rb
ruby 1.9.3p194 (2012-04-20) [i386-mingw32]
#<ThreadError: can't create Thread (12)>
Which indicates somethings got backported into ruby_1_9_3 that solves the issue but it does not work in 64bits.
I seem unable to find a recent reference to this issue.
Is there something I'm missing?
Thank you.
=end