Skip to content

Commit 2576c26

Browse files
committed
-Xlog is not supported on JDK8
1 parent 02dbf93 commit 2576c26

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tool/jt.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,10 @@ def truffleruby_jvm?
282282
truffleruby? and !truffleruby_native?
283283
end
284284

285+
def jdk8?
286+
graalvm_home and !Dir.exist?("#{graalvm_home}/jmods")
287+
end
288+
285289
def truffleruby_launcher_path
286290
require_ruby_launcher!
287291
@truffleruby_launcher_path ||= File.expand_path('../truffleruby', @ruby_launcher_realpath)
@@ -924,7 +928,7 @@ def rebuild(*options)
924928
vm_args << "--core-load-path=#{TRUFFLERUBY_DIR}/src/main/ruby/truffleruby"
925929
end
926930

927-
if ci? and truffleruby_jvm?
931+
if ci? and truffleruby_jvm? and !jdk8?
928932
vm_args << '--vm.Xlog:os+thread=off' # GR-23507: prevent thread warnings on stdout to break specs/tests
929933
end
930934

0 commit comments

Comments
 (0)