Skip to content

Commit 67e5f6a

Browse files
committed
[GR-23507] Suppress HotSpot thread warnings on stdout, they break tests
1 parent 139963a commit 67e5f6a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tool/jt.rb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -915,9 +915,14 @@ def rebuild(*options)
915915
end
916916
end
917917

918-
if core_load_path && truffleruby? && !truffleruby_native?
919-
add_experimental_options.call
920-
vm_args << "--core-load-path=#{TRUFFLERUBY_DIR}/src/main/ruby/truffleruby"
918+
if truffleruby? && !truffleruby_native?
919+
if core_load_path
920+
add_experimental_options.call
921+
vm_args << "--core-load-path=#{TRUFFLERUBY_DIR}/src/main/ruby/truffleruby"
922+
end
923+
if ci?
924+
vm_args << '--vm.Xlog:os+thread=off' # GR-23507: prevent thread warnings on stdout to break specs/tests
925+
end
921926
end
922927

923928
[vm_args, ruby_args + args, options]

0 commit comments

Comments
 (0)