Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 566c544

Browse files
committed
YJIT: Use binwrite to write exit locations
1 parent b184cdf commit 566c544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yjit.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def self.dump_exit_locations(filename)
120120
raise ArgumentError, "--yjit-trace-exits must be enabled to use dump_exit_locations."
121121
end
122122

123-
File.write(filename, Marshal.dump(RubyVM::YJIT.exit_locations))
123+
File.binwrite(filename, Marshal.dump(RubyVM::YJIT.exit_locations))
124124
end
125125

126126
# Return a hash for statistics generated for the --yjit-stats command line option.

0 commit comments

Comments
 (0)