Skip to content

Commit fa5a095

Browse files
authored
Update the faker RUBY_DESCRIPTION (#17)
1 parent 0035c98 commit fa5a095

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/fake.rb.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ class Object
4343
elsif RubyVM.const_defined?(:YJIT) && RubyVM::YJIT.enabled?
4444
options << ' +YJIT'
4545
end
46-
if GC.const_defined?(:MMTk)
47-
options << ' +MMTk'
46+
if defined?(GC::MMTk.enabled?) && GC::MMTk.enabled?
47+
options << " +MMTk(#{GC::MMTk.plan_name})"
4848
end
4949
RUBY_DESCRIPTION = (<%=arg['RUBY_DESCRIPTION_PRE'].inspect%> + options.join('') + <%=arg['RUBY_DESCRIPTION_POST'].inspect%>).freeze
5050
end

0 commit comments

Comments
 (0)