Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/ruby/test_zjit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2127,6 +2127,7 @@ def test = 1
# After reset, counters should be zero or at least much smaller
# (some instructions might execute between reset and reading stats)
:zjit_insn_count.then { |s| initial_stats[s] > 0 && reset_stats[s] < initial_stats[s] },
:compiled_iseq_count.then { |s| initial_stats[s] > 0 && reset_stats[s] < initial_stats[s] }
].all?
}, stats: true
end
Expand Down
2 changes: 1 addition & 1 deletion tool/merger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def execute(*cmd, interactive: false)
end

# Merge revision from Git patch
git_uri = "https://git.ruby-lang.org/ruby.git/patch/?id=#{git_rev}"
git_uri = "https://github.com/ruby/ruby/commit/#{git_rev}.patch"
resp = Net::HTTP.get_response(URI(git_uri))
if resp.code != '200'
abort "'#{git_uri}' returned status '#{resp.code}':\n#{resp.body}"
Expand Down
12 changes: 6 additions & 6 deletions zjit/src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ macro_rules! make_counters {
}

impl Counter {
pub fn name(&self) -> String {
pub fn name(&self) -> &'static str {
match self {
$( Counter::$default_counter_name => stringify!($default_counter_name).to_string(), )+
$( Counter::$exit_counter_name => stringify!($exit_counter_name).to_string(), )+
$( Counter::$dynamic_send_counter_name => stringify!($dynamic_send_counter_name).to_string(), )+
$( Counter::$optimized_send_counter_name => stringify!($optimized_send_counter_name).to_string(), )+
$( Counter::$counter_name => stringify!($counter_name).to_string(), )+
$( Counter::$default_counter_name => stringify!($default_counter_name), )+
$( Counter::$exit_counter_name => stringify!($exit_counter_name), )+
$( Counter::$dynamic_send_counter_name => stringify!($dynamic_send_counter_name), )+
$( Counter::$optimized_send_counter_name => stringify!($optimized_send_counter_name), )+
$( Counter::$counter_name => stringify!($counter_name), )+
}
}
}
Expand Down