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

78574 Коммитов

Автор SHA1 Сообщение Дата
Jenny Shen 108cc38a76 [rubygems/rubygems] Extract polling logic into its own class
https://github.com/rubygems/rubygems/commit/218b83abed
2023-07-28 16:08:07 +00:00
Jenny Shen 023d0f662b [rubygems/rubygems] Add Webauthn verification poller to fetch OTP
https://github.com/rubygems/rubygems/commit/39c5e86a67
2023-07-28 16:08:07 +00:00
Jenny Shen 836e4eb3cd [rubygems/rubygems] Remove fetcher login in util_sign_in
https://github.com/rubygems/rubygems/commit/8e6bc4485a
2023-07-28 16:08:06 +00:00
Jenny Shen 812dbe79f0 [rubygems/rubygems] Create SignInFetcher
https://github.com/rubygems/rubygems/commit/38afc47899
2023-07-28 16:08:06 +00:00
Peter Zhu 91e13a5207 [ruby/strscan] Fix indentation in strscan.c
[ci skip]
2023-07-28 10:12:52 -04:00
Nobuyoshi Nakada 49b76e57cc
Test `SHARABLE_MIDDLE_SUBSTRING` [ci skip] 2023-07-28 22:22:12 +09:00
Nobuyoshi Nakada 9f059d908c
Freeze test string to be shared for sharable-middle-substring 2023-07-28 22:17:54 +09:00
Nobuyoshi Nakada af04e26924
Fill terminator properly 2023-07-28 22:17:53 +09:00
Nobuyoshi Nakada 7cfabe1acc
Preserve `ec` argument across `longjmp`
Fix segfault on icc 2023.2.
An optimizer may allocate this argument to a register, and it may be
clobbered by `longjmp`, e.g. exceptions.
2023-07-28 19:39:43 +09:00
Ruby 6391132c03 fix typo (CACH_ -> CACHE_) 2023-07-28 18:01:42 +09:00
git 5de82ed401 Update bundled gems list at 2023-07-28 2023-07-28 06:59:38 +00:00
Hiroshi SHIBATA 2deeb0e0bf Removed unnecessary methods 2023-07-28 14:57:10 +09:00
Hiroshi SHIBATA 35517baae5 Use Gem::BUNDLED_GEMS::SINCE 2023-07-28 14:57:10 +09:00
Nobuyoshi Nakada 989f3add62 Warn default gems which will be gemified in future 2023-07-28 14:57:10 +09:00
Hiroshi SHIBATA b9c2f4a424
Fixed gemfile path for upstream of bundler 2023-07-28 14:49:03 +09:00
Hiroshi SHIBATA ce6c6c7cfa
Exclude lockfile from sync target 2023-07-28 13:15:12 +09:00
Hiroshi SHIBATA 93f57dbcef
Update description for test-bundler on gitignore 2023-07-28 12:49:55 +09:00
Hiroshi SHIBATA 426434556f
Removed lockfile for test-bundler 2023-07-28 12:47:31 +09:00
Ruby c330037c1a `cc->cme` should not be marked.
cc is callcache.

cc->klass (klass) should not be marked because if the klass is
free'ed, the cc->klass will be cleared by `vm_cc_invalidate()`.

cc->cme (cme) should not be marked because if cc is invalidated
when cme is free'ed.
- klass marks cme if klass uses cme.
- caller classe's ccs->cme marks cc->cme.
- if cc is invalidated (klass doesn't refer the cc),
  cc is invalidated by `vm_cc_invalidate()` and cc->cme is
  not be accessed.
- On the multi-Ractors, cme will be collected with global GC
  so that it is safe if GC is not interleaving while accessing
  cc and cme.

fix [Bug #19436]

```ruby
10_000.times{|i|
  # p i if (i%1_000) == 0

  str = "x" * 1_000_000
  def str.foo = nil
  eval "def call#{i}(s) = s.foo"
  send "call#{i}", str
}
```

Without this patch:

```
real    1m5.639s
user    0m6.637s
sys     0m58.292s
```

and with this patch:

```
real    0m2.045s
user    0m1.627s
sys     0m0.164s
```
2023-07-28 10:51:11 +09:00
Takashi Kokubun 44b19b01e2 Remove an obsoleted initialization from Wasm 2023-07-27 17:36:07 -07:00
Takashi Kokubun 8c7cf2de98 Remove an unused argument in vm_exec_core 2023-07-27 17:31:27 -07:00
Takashi Kokubun 38be9a9b72
Clean up OPT_STACK_CACHING (#8132) 2023-07-27 17:27:05 -07:00
Takashi Kokubun bf4d64d8d0 Remove an unused macro
We've deleted opt_call_c_function instruction before.
2023-07-27 16:50:50 -07:00
Takashi Kokubun cf0c907bc7
YJIT: Count setivar too-complex exits (#8131) 2023-07-27 19:35:30 -04:00
Xavier Noria 437a4ccbf2 [rubygems/rubygems] Restore support for Pathname objects in the replaced require
https://github.com/rubygems/rubygems/commit/f7b4282ef7
2023-07-27 23:07:19 +00:00
Takashi Kokubun 9721972175 Resurrect rb_reg_prepare_re C API
Existing strscan releases rely on this C API. It means that the current
Ruby master doesn't work if your Gemfile.lock has strscan unless it's
locked to 3.0.7, which is not released yet.

To fix it, let's not remove the C API we've exposed to users.
2023-07-27 15:30:10 -07:00
Maxime Chevalier-Boisvert 5669a28fde
YJIT: implement missing `asm.jg` instruction in backend (#8130)
YJIT: implement missing jg instruction in backend

While trying to implement a specialize integer left shift, I ran
into a problem where we have no way to do a greater-than comparison
at the moment. Surprising we went this far without ever needing it.
2023-07-27 17:47:29 -04:00
Alan Wu 83f9d80c0b
downloader.rb: unlink broken symlink before caching to fix ENOENT
On GitHub CI, the downloader's cache is shared across different jobs.
For some systems, the cached config.guess ends up being a symlink to
/usr/share/autoconf/build-aux/config.guess and containers that don't
have that file end up consuming the cache anyways, leading to ENOENT
when trying to cache the downloaded file.

This error happened on forks:
 - https://github.com/XrXr/ruby/actions/runs/5675262636/job/15380232344
 - https://github.com/peterzhu2118/ruby/actions/runs/5684765421/job/15408188728
2023-07-27 17:09:08 -04:00
Peter Zhu f72f3ab15b Use onig_new_without_alloc for onig_new 2023-07-27 15:39:05 -04:00
Alan Wu 7633299c50 YJIT: getblockparamproxy for when block is a Proc 2023-07-27 15:03:46 -04:00
Alan Wu 34825ed20d Revert "YJIT: Fix naming for a getblockparamproxy counter"
This reverts commit e7804963f09d7df7f6cce44fbb3e37809c9a15cc.
Oops. The counter was for getblockparam, without "proxy", so
it was aptly named.
2023-07-27 15:03:46 -04:00
Peter Zhu 69b20d1196 Don't load RREGEXP_PTR twice 2023-07-27 14:41:12 -04:00
Peter Zhu 511c51e116 Refactor err string in rb_reg_prepare_re 2023-07-27 14:04:02 -04:00
Peter Zhu 7193b404a1 Add function rb_reg_onig_match
rb_reg_onig_match performs preparation, error handling, and cleanup for
matching a regex against a string. This reduces repetitive code and
removes the need for StringScanner to access internal data of regex.
2023-07-27 13:33:40 -04:00
Takashi Kokubun e5effa4bd0
YJIT: Use dynamic dispatch for megamorphic send (#8125) 2023-07-27 13:09:17 -04:00
Peter Zhu e27eab2f85 [ruby/strscan] Sync missed commit
Syncs commit ruby/strscan@76b377a5d8.
2023-07-27 09:42:42 -04:00
osyo-manga ccca097cb5 [ruby/reline] Add `kill-word` and `backward-kill-word` keymapping
support.
(https://github.com/ruby/reline/pull/570)

Fix it
https://github.com/ruby/reline/issues/558

https://github.com/ruby/reline/commit/0f8000443e

Co-authored-by: Stan Lo <stan001212@gmail.com>
2023-07-27 09:08:24 +00:00
git e78af6b82d Update default gems list at b201ac0bc0 [ci skip] 2023-07-27 08:24:09 +00:00
Stan Lo b201ac0bc0 [ruby/reline] Bump version to 0.3.7
(https://github.com/ruby/reline/pull/578)

https://github.com/ruby/reline/commit/dc5a1b7c48
2023-07-27 08:23:08 +00:00
git 46ca0e1ce4 Update bundled gems list at 2023-07-27 2023-07-27 07:00:06 +00:00
Takashi Kokubun 9bdd485972
YJIT: Count the number of dynamic send dispatches (#8122) 2023-07-26 12:59:59 -07:00
Alan Wu 37160be439 YJIT: Fix naming for a getblockparamproxy counter
The rest of the counters are prefixed with `gbpp_` and that's what
`yjit.rb` uses when printing the summary. This counter wasn't included
in the summary.
2023-07-26 13:58:15 -04:00
Haldun Bayhantopcu 499eb3990f [ruby/yarp] Fix tests
https://github.com/ruby/yarp/commit/50e745767e
2023-07-26 14:46:20 +00:00
Haldun Bayhantopcu c680ae2ce1 [ruby/yarp] Added locations to errors tests
https://github.com/ruby/yarp/commit/108d1221ef
2023-07-26 14:46:19 +00:00
Haldun Bayhantopcu 47ff17a413 [ruby/yarp] Fix error and warning locations
https://github.com/ruby/yarp/commit/b91317ab39
2023-07-26 14:46:19 +00:00
Haldun Bayhantopcu bd5cc4d6a0 [ruby/yarp] Add comments test
https://github.com/ruby/yarp/commit/6484af4165
2023-07-26 14:46:18 +00:00
Haldun Bayhantopcu 59e5bf2d1f [ruby/yarp] Fix comment locations
https://github.com/ruby/yarp/commit/7d2a1f8f1f
2023-07-26 14:46:17 +00:00
ywenc 8ca399d640
Implement `opt_aref_with` instruction (#8118)
Implement gen_opt_aref_with

Vm opt_aref_with is available

Test opt_aref_with

Stats for opt_aref_with

Co-authored-by: jhawthorn <jhawthorn@github.com>
2023-07-26 10:38:59 -04:00
Jeremy Evans 786a864900 Make {Nil,True,False}Class#singleton_method always raise NameError
{Nil,True,False}Class#singleton_methods always returns [] indicating
that there are no singleton methods defined, so #singleton_method
should be consistent with that.

Fixes [Bug #11064]
2023-07-26 07:27:15 -07:00
Jean Boussier 9b405a18be Process.warmup: precompute strings coderange
This both save time for when it will be eventually needed,
and avoid mutating heap pages after a potential fork.

Instrumenting some large Rails app, I've witnessed up to
58% of String instances having their coderange still unknown.
2023-07-26 11:41:23 +02:00