YJIT: Use binwrite to write exit locations

This commit is contained in:
John Hawthorn 2022-06-17 11:26:51 -07:00
Родитель b184cdfd74
Коммит 566c5447ae
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -120,7 +120,7 @@ module RubyVM::YJIT
raise ArgumentError, "--yjit-trace-exits must be enabled to use dump_exit_locations." raise ArgumentError, "--yjit-trace-exits must be enabled to use dump_exit_locations."
end end
File.write(filename, Marshal.dump(RubyVM::YJIT.exit_locations)) File.binwrite(filename, Marshal.dump(RubyVM::YJIT.exit_locations))
end end
# Return a hash for statistics generated for the --yjit-stats command line option. # Return a hash for statistics generated for the --yjit-stats command line option.