Skip to content

Commit fa46c95

Browse files
authored
Merge pull request #511 from ruby/pz-compact-check
Check for GC compaction support
2 parents 324b11b + cb1d664 commit fa46c95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

harness/harness-common.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
end
99

1010
# Support enabling GC auto-compaction via environment variable
11-
GC.auto_compact = !!ENV["RUBY_GC_AUTO_COMPACT"]
11+
GC.auto_compact = !!ENV["RUBY_GC_AUTO_COMPACT"] if GC.respond_to?(:auto_compact)
1212

1313
# Seed the global random number generator for repeatability between runs
1414
Random.srand(1337)

0 commit comments

Comments
 (0)