Skip to content

Commit 7ee34cd

Browse files
committed
Merge remote-tracking branch 'official/master' into mmtk
2 parents 2e90a2b + 14fe7a0 commit 7ee34cd

File tree

222 files changed

+2168
-1340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+2168
-1340
lines changed

.cirrus.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,4 @@ yjit_task:
131131
make_test_script: source $HOME/.cargo/env && make test RUN_OPTS="--yjit-call-threshold=1 --yjit-verify-ctx"
132132
make_test_all_script: source $HOME/.cargo/env && make test-all RUN_OPTS="--yjit-call-threshold=1 --yjit-verify-ctx" TESTOPTS="$RUBY_TESTOPTS"
133133
make_test_spec_script: source $HOME/.cargo/env && make test-spec RUN_OPTS="--yjit-call-threshold=1 --yjit-verify-ctx"
134+
clippy_script: source $HOME/.cargo/env && cd yjit && cargo clippy --all-targets --all-features

.gdbinit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ end
12811281

12821282
# Details: https://bugs.ruby-lang.org/projects/ruby-master/wiki/MachineInstructionsTraceWithGDB
12831283
define trace_machine_instructions
1284-
set logging on
1284+
set logging enabled
12851285
set height 0
12861286
set width 0
12871287
display/i $pc

.github/workflows/baseruby.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
# - ruby-2.7
4040
- ruby-3.0
4141
- ruby-3.1
42+
- ruby-3.2
4243

4344
steps:
4445
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0

.github/workflows/bundled_gems.yml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -56,35 +56,7 @@ jobs:
5656
5757
- name: Maintain updated gems list in NEWS
5858
run: |
59-
#!ruby
60-
require 'json'
61-
news = File.read("NEWS.md")
62-
prev = news[/since the \*+(\d+\.\d+\.\d+)\*+/, 1]
63-
prevs = [prev, prev.sub(/\.\d+\z/, '')]
64-
%W[bundled].each do |type|
65-
last = JSON.parse(File.read("#{type}_gems.json"))['gems'].filter_map do |g|
66-
v = g['versions'].values_at(*prevs).compact.first
67-
g = g['gem']
68-
g = 'RubyGems' if g == 'rubygems'
69-
[g, v] if v
70-
end.to_h
71-
changed = File.foreach("gems/#{type}_gems").filter_map do |l|
72-
next if l.start_with?("#")
73-
g, v = l.split(" ", 3)
74-
[g, v] unless last[g] == v
75-
end
76-
changed, added = changed.partition {|g, _| last[g]}
77-
news.sub!(/^\*( +)The following #{type} gems? are updated\.\n+\K(?: \1\*( +).*\n)*/) do
78-
mark = "#{$1} *#{$2}"
79-
changed.map {|g, v|"#{mark}#{g} #{v}\n"}.join("")
80-
end or next
81-
news.sub!(/^\*( +)The following default gems are now bundled gems\.\n+\K(?: \1\*( +).*\n)*/) do
82-
mark = "#{$1} *#{$2}"
83-
added.map {|g, v|"#{mark}#{g} #{v}\n"}.join("")
84-
end or next unless added.empty?
85-
File.write("NEWS.md", news)
86-
end
87-
shell: ruby {0}
59+
ruby tool/update-NEWS-gemlist.rb bundled
8860
8961
- name: Check diffs
9062
id: diff

.github/workflows/check_misc.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
! grep -r -n '[^ -~]' -- *.[chy] include internal win32/*.[ch]
2121
- name: Check for trailing spaces
2222
run: |
23-
! git grep -n '[ ]$' -- '*.rb' '*.[chy]'
23+
! git grep -n '[ ]$' -- '*.rb' '*.[chy]' '*.rs'
2424
! git grep -n '^[ ][ ]*$' -- '*.md'
2525
- name: Check for bash specific substitution in configure.ac
2626
run: |
@@ -66,30 +66,7 @@ jobs:
6666

6767
- name: Maintain updated gems list in NEWS
6868
run: |
69-
#!ruby
70-
require 'json'
71-
news = File.read("NEWS.md")
72-
prev = news[/since the \*+(\d+\.\d+\.\d+)\*+/, 1]
73-
prevs = [prev, prev.sub(/\.\d+\z/, '')]
74-
%W[default].each do |type|
75-
last = JSON.parse(File.read("#{type}_gems.json"))['gems'].filter_map do |g|
76-
v = g['versions'].values_at(*prevs).compact.first
77-
g = g['gem']
78-
g = 'RubyGems' if g == 'rubygems'
79-
[g, v] if v
80-
end.to_h
81-
changed = File.foreach("gems/#{type}_gems").filter_map do |l|
82-
next if l.start_with?("#")
83-
g, v = l.split(" ", 3)
84-
[g, v] unless last[g] == v
85-
end
86-
news.sub!(/^\*( +)The following #{type} gems? are updated\.\n+\K(?: \1\* .*\n)*/) do
87-
mark = "#{$1} * "
88-
changed.map {|g, v|"#{mark}#{g} #{v}\n"}.join("")
89-
end or next
90-
File.write("NEWS.md", news)
91-
end
92-
shell: ruby {0}
69+
ruby tool/update-NEWS-gemlist.rb default
9370
9471
- name: Check diffs
9572
id: diff

.github/workflows/spec_guards.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
ruby:
3030
- ruby-2.7
3131
- ruby-3.1
32+
- ruby-3.2
3233

3334
steps:
3435
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0

.github/workflows/yjit-ubuntu.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ jobs:
4040
# Check that we can build in release mode too
4141
- run: cargo build --release
4242
working-directory: yjit
43+
lint:
44+
name: Rust lint
45+
# GitHub Action's image seems to already contain a Rust 1.58.0.
46+
runs-on: ubuntu-20.04
47+
steps:
48+
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
49+
# Check that we don't have linting errors in release mode, too
50+
- run: cargo clippy --all-targets --all-features
51+
working-directory: yjit
4352
make:
4453
strategy:
4554
fail-fast: false

LEGAL

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,7 @@ mentioned below.
748748
[ext/psych]
749749
[test/psych]
750750

751-
The files under these directories are under the following license, except for
752-
ext/psych/yaml.
751+
The files under these directories are under the following license.
753752

754753
>>>
755754
Copyright 2009:: Aaron Patterson, et al.
@@ -772,31 +771,6 @@ mentioned below.
772771
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
773772
SOFTWARE.
774773

775-
[ext/psych/yaml]
776-
777-
The files under this directory are under the following license.
778-
779-
>>>
780-
Copyright (c) 2006:: Kirill Simonov
781-
782-
Permission is hereby granted, free of charge, to any person obtaining a copy of
783-
this software and associated documentation files (the "Software"), to deal in
784-
the Software without restriction, including without limitation the rights to
785-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
786-
of the Software, and to permit persons to whom the Software is furnished to do
787-
so, subject to the following conditions:
788-
789-
The above copyright notice and this permission notice shall be included in all
790-
copies or substantial portions of the Software.
791-
792-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
793-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
794-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
795-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
796-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
797-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
798-
SOFTWARE.
799-
800774
[ext/pty/pty.c]
801775

802776
>>>
@@ -979,7 +953,6 @@ mentioned below.
979953
{MIT License}[rdoc-label:label-MIT+License]
980954

981955
[lib/rubygems/resolver/molinillo]
982-
[lib/bundler/vendor/molinillo]
983956

984957
molinillo is under the following license.
985958

@@ -988,6 +961,15 @@ mentioned below.
988961

989962
{MIT License}[rdoc-label:label-MIT+License]
990963

964+
[lib/bundler/vendor/pub_grub]
965+
966+
pub_grub is under the following license.
967+
968+
>>>
969+
Copyright (c) 2018 John Hawthorn
970+
971+
{MIT License}[rdoc-label:label-MIT+License]
972+
991973
[lib/bundler/vendor/connection_pool]
992974

993975
connection_pool is under the following license.

NEWS.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,25 @@ Note: We're only listing outstanding class updates.
2121

2222
## Stdlib updates
2323

24-
* The following default gems are updated.
24+
The following default gems are updated.
2525

26-
* RubyGems 3.5.0.dev
27-
* abbrev 0.1.1
28-
* bundler 2.5.0.dev
29-
* csv 3.2.7
30-
* fiddle 1.1.2
31-
* optparse 0.4.0.pre.1
32-
* stringio 3.0.5
33-
* strscan 3.0.6
26+
* RubyGems 3.5.0.dev
27+
* abbrev 0.1.1
28+
* bundler 2.5.0.dev
29+
* csv 3.2.7
30+
* fiddle 1.1.2
31+
* optparse 0.4.0.pre.1
32+
* stringio 3.0.5
33+
* strscan 3.0.6
3434

35-
* The following bundled gems are updated.
35+
The following bundled gems are updated.
3636

37-
* minitest 5.17.0
38-
* rbs 2.8.3
37+
* minitest 5.17.0
38+
* rbs 2.8.3
39+
* typeprof 0.21.4
3940

40-
See GitHub releases like [GitHub Releases of Logger](https://github.com/ruby/logger/releases) or changelog for details of the default gems or bundled gems.
41+
See GitHub releases like [Logger](https://github.com/ruby/logger/releases) or
42+
changelog for details of the default gems or bundled gems.
4143

4244
## Supported platforms
4345

addr2line.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,10 +1725,6 @@ di_read_cu(DebugInfoReader *reader)
17251725
di_read_debug_abbrev_cu(reader);
17261726
if (di_read_debug_line_cu(reader)) return -1;
17271727

1728-
#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER_BUILD_DATE)
1729-
/* Though DWARF specifies "the applicable base address defaults to the base
1730-
address of the compilation unit", but GCC seems to use zero as default */
1731-
#else
17321728
do {
17331729
DIE die;
17341730

@@ -1772,14 +1768,14 @@ di_read_cu(DebugInfoReader *reader)
17721768
break;
17731769
case VAL_addr:
17741770
{
1775-
addr_header_t header;
1771+
addr_header_t header = {};
17761772
addr_header_init(reader->obj, &header);
17771773
reader->current_low_pc = read_addr(&header, reader->current_addr_base, low_pc.as.addr_idx);
17781774
}
17791775
break;
17801776
}
17811777
} while (0);
1782-
#endif
1778+
17831779
return 0;
17841780
}
17851781

0 commit comments

Comments
 (0)