1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

YJIT: Use binwrite to write exit locations

This commit is contained in:
John Hawthorn 2022-06-17 11:26:51 -07:00
parent b184cdfd74
commit 566c5447ae
Notes: git 2022-06-18 04:17:45 +09:00

View file

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