summaryrefslogtreecommitdiff
path: root/benchmark/gc
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-19 01:49:59 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-19 01:49:59 (GMT)
commit2ad4a1600bd407751f1aae01e758505fd2a5d61d (patch)
treeec8fa41d6ff35c36ca8ed508278c08772d28e2c7 /benchmark/gc
parent3f8deb966cbfc42c91ae4be98dc82559c52baadb (diff)
* benchmark/gc/gcbench.rb: check GC::OPTS availability
for not MRI 2.1.0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/gc')
-rw-r--r--benchmark/gc/gcbench.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/gc/gcbench.rb b/benchmark/gc/gcbench.rb
index b038b71..09a4044 100644
--- a/benchmark/gc/gcbench.rb
+++ b/benchmark/gc/gcbench.rb
@@ -34,7 +34,7 @@ end
pp GC.stat
-puts "#{RUBY_DESCRIPTION} #{GC::OPTS.inspect}"
+puts "#{RUBY_DESCRIPTION} #{GC::OPTS.inspect}" if defined?(GC::OPTS)
desc = "#{RUBY_VERSION}#{RUBY_PATCHLEVEL >= 0 ? "p#{RUBY_PATCHLEVEL}" : "dev"}"
name = File.basename(script, '.rb')