Skip to content

Commit

Permalink
YJIT: Don't attempt to add log entries if the compilation log is not …
Browse files Browse the repository at this point in the history
…enabled.
  • Loading branch information
nirvdrum committed Oct 4, 2024
1 parent 103cea6 commit 7dae77b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions yjit/src/compilation_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ impl CompilationLog {
}

fn add_payload(payload: CompilationLogPayload) {
if !Self::has_instance() {
return;
}

let print_compilation_log = get_option!(print_compilation_log);
let timestamp = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).unwrap().as_secs_f64();

Expand Down

0 comments on commit 7dae77b

Please sign in to comment.