[前][次][番号順一覧][スレッド一覧]

ruby-changes:72221

From: John <ko1@a...>
Date: Sat, 18 Jun 2022 04:17:40 +0900 (JST)
Subject: [ruby-changes:72221] 566c5447ae (master): YJIT: Use binwrite to write exit locations

https://git.ruby-lang.org/ruby.git/commit/?id=566c5447ae

From 566c5447aedbb03f55b4dc12381b432b84f9039c Mon Sep 17 00:00:00 2001
From: John Hawthorn <john@h...>
Date: Fri, 17 Jun 2022 11:26:51 -0700
Subject: YJIT: Use binwrite to write exit locations

---
 yjit.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yjit.rb b/yjit.rb
index cbaea7d003..b0ddb475ac 100644
--- a/yjit.rb
+++ b/yjit.rb
@@ -120,7 +120,7 @@ module RubyVM::YJIT https://github.com/ruby/ruby/blob/trunk/yjit.rb#L120
       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.
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]