ZJIT: Handle invalid Counter on --zjit-trace-exits=counter (#14911)

This commit is contained in:
Aiden Fox Ivey 2025-10-22 17:16:52 -04:00 committed by GitHub
parent fa3a6f5cde
commit 3861918fd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2025-10-22 21:17:27 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>

View File

@ -261,7 +261,7 @@ fn parse_option(str_ptr: *const std::os::raw::c_char) -> Option<()> {
("trace-exits", exits) => {
options.trace_side_exits = match exits {
"" => Some(TraceExits::All),
name => Counter::get(name).map(TraceExits::Counter),
name => Some(Counter::get(name).map(TraceExits::Counter)?),
}
}