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 6b049d1 commit 3564d5f
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 @@ -76,6 +76,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 3564d5f

Please sign in to comment.