Граф коммитов

80486 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 361bce8d2c
[Bug #19967] Ignore library before build 2023-10-21 23:47:29 +09:00
Nobuyoshi Nakada 38b79b05fd
Fallback job status to normal if no tty 2023-10-21 19:47:05 +09:00
Nobuyoshi Nakada 54b9b80b84
[Bug #19967] Delete real path 2023-10-21 16:45:03 +09:00
Nobuyoshi Nakada 5e24a4e392
Strip universal_archnames 2023-10-21 15:42:41 +09:00
Nobuyoshi Nakada 642875e474
[Bug #19967] Revert "configure.ac: LIBPATHENV on macOS"
This reverts commit 1961c786aa.  These
environment variables should no longer propagate to child processes.
2023-10-21 14:05:21 +09:00
Nobuyoshi Nakada 665b4c5b2a
[Bug #19967] Reset `LIBPATHENV` env after started
Not to affect other tools invoked as child processes.
2023-10-21 14:05:20 +09:00
Nobuyoshi Nakada 6d1ed3def8
Avoid duplicate path in library paths 2023-10-21 14:05:20 +09:00
Charles Oliver Nutter 55d954721e
Raise TypeError for bad IO::Buffer.map argument (#8728)
* Raise TypeError when IO::Buffer.map argument is neither IO nor implements #fileno

* Use UNREACHABLE_CODE

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>

* Use macro for undef check

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>

---------

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2023-10-21 17:30:40 +13:00
Charles Oliver Nutter 0e62802c3b
Extract IO::Buffer.for string locking test (#8729)
String locking with locktmp is not really part of the public API,
and the test relies in a side effect of using it to protect the
buffer. On other implementations without locktmp this does not
fail. Separate into its own test so it can be excluded from public
API expectations.
2023-10-21 02:00:18 +00:00
Takashi Kokubun 8a88172fd4
YJIT: Skip printing stats at exit if --yjit-disable (#8727) 2023-10-20 13:12:38 -07:00
Jemma Issroff 01787d53bf [PRISM] Setup encodings in prism compiler 2023-10-20 16:29:06 -03:00
Alan Wu fab7018346
YJIT: On test_bug_19316, only check the result
Because the `&` call checks for interrupts, the test was accidentally
timing dependent. Stop checking for exits.

[Bug #19921]

Reported-by: Vít Ondruch <vondruch@redhat.com>
Reported-by: Mamoru Tasaka <mtasaka@fedoraproject.org>
2023-10-20 17:00:52 +00:00
Jemma Issroff 1c48d15d6b Add tests for all implemented nodes, leave ones that need fixing commented out 2023-10-20 11:49:53 -03:00
Jemma Issroff 40624d4921 Added TODOs on all implemented nodes, matched ordering 2023-10-20 11:49:53 -03:00
Jemma Issroff a426a230de [PRISM] Fixed StringConcatNode, uncommented tests 2023-10-20 11:49:53 -03:00
Herwin 8b3d044004
[DOC] Indentation fix in comments of MatchData#inspect
The old version did not add syntax highlighting to the code block, and
included the "Related:" line in the code block as well.
2023-10-20 18:26:37 +09:00
Nobuyoshi Nakada 0061eaddc9
[DOC] `configure -C` tips 2023-10-20 16:33:23 +09:00
Nobuyoshi Nakada 9d1940ba3c [Bug #19966] [PRISM] Fix singleton method definition 2023-10-20 15:16:34 +09:00
Nobuyoshi Nakada 84dfa0fa5e [PRISM] Enclose in the test class 2023-10-20 15:16:34 +09:00
Hiroshi SHIBATA bb849ffdb1
Added explicitly begin-end block for Ruby 2.4.
strscan, ipaddr and some default gems still support Ruby 2.4.

  After this, I extract this CoreAssertions to their repositories.
2023-10-20 14:34:08 +09:00
yui-knk 9ea1ee66c9 Stop creating ripper.h because it's not used 2023-10-20 12:56:04 +09:00
Hiroshi SHIBATA 0976488970 [ruby/logger] Bump up required ruby version to 2.5
https://github.com/ruby/logger/commit/ac911eae2b
2023-10-20 02:37:07 +00:00
Hiroshi SHIBATA 13b33b109f [ruby/logger] Use Gemfile instead of Gem::Specification#add_development_dependency
https://github.com/ruby/logger/commit/7b51af263f
2023-10-20 02:37:04 +00:00
Takashi Kokubun 62c1d8187b Partly revert a change in #8705
Having this variable actually helps the performance of non-JITed calls.

-----  -----------  ----------  ----------  ----------  -------------  ------------
bench  before (ms)  stddev (%)  after (ms)  stddev (%)  after 1st itr  before/after
fib    241.9        0.5         225.4       1.0         1.06           1.07
-----  -----------  ----------  ----------  ----------  -------------  ------------

(benchmarked with --yjit-cold-threshold=0)
2023-10-19 17:52:03 -07:00
Hiroshi SHIBATA 1640dbdedd
Sort gem names 2023-10-20 09:13:55 +09:00
Hiroshi SHIBATA 2a56a6c3af
racc is also extracted to bundled gems 2023-10-20 09:13:55 +09:00
Takashi Kokubun 985370406d Call rb_jit_cont_init() even earlier
To fix https://github.com/ruby/ruby/actions/runs/6581593578/job/17881779994
2023-10-19 17:12:09 -07:00
Takashi Kokubun a9d7525fb4 Avoid initializing jit_cont_lock multiple times
Contrary to my initial assumption, rb_threadptr_root_fiber_setup() is
called for each Ractor, not just once at boot. I changed the place to
call rb_jit_cont_init() to avoid calling it multiple times.
2023-10-19 17:06:23 -07:00
Matheus Richard 72f97ee06e
[DOC] Improve docs for how to generate documentation
It might not be obvious how to get the build directory and the Makefile
set up.
2023-10-20 08:45:07 +09:00
Takashi Kokubun bd2aee67c1 [DOC] "is now bundled" is ambiguous
I think it meant it's now a bundled "gem", but "is now bundled" implies
it's a new gem that was neither default nor bundled gems. So I changed
wording.

I also want to change the subjects and reorder them so that it will read:
"The following default gem" (new) -> "The following default gem" (updated) ->
"The following bundled gem" (new) -> "The following bundled gem" (updated).
2023-10-19 16:37:11 -07:00
Takashi Kokubun a9df1e6990 Ignore inputs to tool/update-NEWS-gemlist.rb
generated by check_misc
2023-10-19 16:31:26 -07:00
Takashi Kokubun c221af2c3d [DOC] Prism is a new default gem 2023-10-19 16:25:33 -07:00
Takashi Kokubun 6d42f4dd2d Avoid using a system Ruby if possible
in tool/update-NEWS-gemlist.rb
2023-10-19 16:10:14 -07:00
Nobuyoshi Nakada b93553bb7e Cirrus CI has been removed [ci skip] 2023-10-19 16:06:32 -07:00
yui-knk 08e25985d1 Expand OP_ASGN1 nd_args to nd_index and nd_rvalue
ARGSCAT has been used for nd_args to hold index and rvalue,
because there was limitation on the number of members for Node.
We can easily change structure of node now, let's expand it.
2023-10-20 07:56:20 +09:00
Takashi Kokubun 7fb909e240 [DOC] Reverse-merge YJIT release note changes 2023-10-19 15:50:46 -07:00
Takashi Kokubun 47f950c89a [DOC] Update NEWS.md about RubyVM::YJIT.enable
--yjit-disable, and --yjit-perf
2023-10-19 15:47:19 -07:00
Herwin 3467355450
[DOC] Fix typo in docs of Regexp#deconstruct_keys
of => if
2023-10-20 07:18:03 +09:00
Nobuyoshi Nakada 5bbb6fd6c3 Add printf format attributes to `rb_parser_config_t` 2023-10-20 07:15:24 +09:00
Samuel Giddins 205cbc09d3 [rubygems/rubygems] Reuse Gem::RemoteFetcher instance in bundler
Closes https://github.com/rubygems/rubygems/issues/7076

Bundler will now use the same (shared) remote fetcher instance that
RubyGems uses.

This will allow installs to use a shared connection pool, which
represents a significant performance improvement on a clean install.

https://github.com/rubygems/rubygems/commit/cd87b40fe1
2023-10-19 21:40:21 +00:00
Samuel Giddins af222d4db2 [rubygems/rubygems] Update vendored thor to v1.3.0
See https://github.com/rails/thor/releases/tag/v1.3.0

https://github.com/rubygems/rubygems/commit/3c7165474b
2023-10-19 20:02:47 +00:00
Maxime Chevalier-Boisvert 3e65115cef
YJIT: remove unused `--yjit-greedy-versioning` command-line option (#8713) 2023-10-19 19:29:31 +00:00
Alan Wu 9194f489c9 YJIT: Make test_yjit.rb faster with --yjit-stats=quiet
The for-human stats summaries are not relevant for the children
`test_yjit.rb` spawns. Avoid compiling and running the printing code.
On a -O0 dev build this halves the time for `test_yjit.rb` on my machine.
2023-10-19 15:14:20 -04:00
Alan Wu 9047fe5ea4 YJIT: Print exit reasons on failure in test_yjit.rb
For <https://bugs.ruby-lang.org/issues/19921>, I suspect the test is
failing due to a timing related interrupt, which on paper could
happen with slow-enough GC runs.

In any case, it's helpful for debugging to have more information when
tests fail.

Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
2023-10-19 15:14:20 -04:00
Alan Wu cdc2a18541 YJIT: Return Option from asm.compile() for has_dropped_bytes()
So that we get a reminder to check CodeBlock::has_dropped_bytes().
Internally, asm.compile() already checks it, and this patch just
propagates it out to the caller with a `#[must_use]`.

Code GC logic moved out one level in entry_stub_hit(), so the body
can freely use `?`
2023-10-19 14:56:35 -04:00
Takashi Kokubun 6beb09c2c9
YJIT: Add RubyVM::YJIT.enable (#8705) 2023-10-19 10:54:35 -07:00
Matt Valentine-House 62e340251b Don't add anonymous locals when ISEQ binary debug is on 2023-10-19 16:57:43 +01:00
Alan Wu 9d9aa63e82 YJIT: Enable the dead_code lint and delete some dead code 2023-10-19 11:50:36 -04:00
Nobuyoshi Nakada c2d4c92a98
Extract a local variable 2023-10-19 17:28:41 +09:00
Hiroshi SHIBATA 5e5a8cf752 [ruby/ostruct] Use Gemfile instead of Gem::Specification#add_development_dependency
https://github.com/ruby/ostruct/commit/ed49920766
2023-10-19 06:55:40 +00:00