summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zjit.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/zjit.rb b/zjit.rb
index ab5bae719a..b84f2a4af6 100644
--- a/zjit.rb
+++ b/zjit.rb
@@ -126,7 +126,9 @@ class << RubyVM::ZJIT
raise ArgumentError, "--zjit-trace-exits must be enabled to use dump_exit_locations."
end
- File.binwrite(filename, Marshal.dump(RubyVM::ZJIT.exit_locations))
+ File.open(filename, "wb") do |file|
+ Marshal.dump(RubyVM::ZJIT.exit_locations, file)
+ end
end
# Check if `--zjit-stats` is used