mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
tool/runruby.rb: test with smallest possible machine stack
Lets ensure none of our C functions use too much stack space and fix all excessive stack usage before releasing the next version. Reducing C stack usage should reduce conservative GC scanning time and improve performance. If there are platform-dependent test failures; excessive stack usage should be fixed; rather than increasing minimum values or removing these envs from testing. * tool/runruby.rb: use smallest possible machine stack size [ruby-core:81597] [Feature #13637] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a2f1c07fe4
commit
c4e2cf4664
1 changed files with 6 additions and 1 deletions
|
@ -67,7 +67,12 @@ end
|
|||
libs << File.expand_path("lib", srcdir)
|
||||
config["bindir"] = abs_archdir
|
||||
|
||||
env = {}
|
||||
env = {
|
||||
# Test with the smallest possible machine stack sizes.
|
||||
# These values are clamped to machine-dependent minimum values in vm_core.h
|
||||
'RUBY_THREAD_MACHINE_STACK_SIZE' => '1',
|
||||
'RUBY_FIBER_MACHINE_STACK_SIZE' => '1',
|
||||
}
|
||||
|
||||
runner = File.join(abs_archdir, "ruby-runner#{config['EXEEXT']}")
|
||||
runner = nil unless File.exist?(runner)
|
||||
|
|
Loading…
Reference in a new issue