diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2025-10-22 16:48:27 -0400 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2025-10-22 17:24:21 -0400 |
| commit | fee863b4df374d014a8b49ec1fa5ae5e31b2e310 (patch) | |
| tree | be79df44a9f9b2addcd0df4778464fd0cae02449 | |
| parent | 3861918fd3fc31a7c04a6b44d3ee9bfcf67c75ba (diff) | |
YJIT: Buffer writes to the perf map
| -rw-r--r-- | yjit/src/codegen.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index 2316558261..2eb66a298e 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -438,7 +438,7 @@ impl<'a> JITState<'a> { fn flush_perf_symbols(&self, cb: &CodeBlock) { assert_eq!(0, self.perf_stack.len()); let path = format!("/tmp/perf-{}.map", std::process::id()); - let mut f = std::fs::File::options().create(true).append(true).open(path).unwrap(); + let mut f = std::io::BufWriter::new(std::fs::File::options().create(true).append(true).open(path).unwrap()); for sym in self.perf_map.borrow().iter() { if let (start, Some(end), name) = sym { // In case the code straddles two pages, part of it belongs to the symbol. |
