89061 Commits

Author SHA1 Message Date
Peter Zhu
c45503f957 Add rb_gc_impl_active_gc_name to gc/gc_impl.h 2024-12-06 10:22:03 -05:00
David Rodríguez
48443c0204 [rubygems/rubygems] Skip unresolved deps warning on Gem::Specification.reset on benign cases
If `Gem::Specification.reset` is used, but there are still unresolved
dependencies, RubyGems prints a warning. There are though, certain cases
where the situation will not cause any issues.

One such case is when the unresolved dependency does not restrict any
versions (>= 0) and there's a default gem matching it.

In this situation, it doesn't matter if Gem paths change, because
default gems are still activatable, so the dependency will be properly
activated if ever needed.

https://github.com/rubygems/rubygems/commit/e5f8a3068e
2024-12-06 15:19:19 +00:00
David Rodríguez
ba91ff5f78 [rubygems/rubygems] Make sure unresolved deps are properly cleared by Gem::Specification.reset
https://github.com/rubygems/rubygems/commit/3976326a7b
2024-12-06 15:19:19 +00:00
Nobuyoshi Nakada
78614ee900
CI: Clean up intermediate files more 2024-12-06 21:47:35 +09:00
Nobuyoshi Nakada
3901df708d
[DOC] Move GC.config news
To "Core classes updates" from "Language changes".
2024-12-06 21:12:57 +09:00
Nobuyoshi Nakada
0fac583d52
[DOC] Fix a typo 2024-12-06 21:12:57 +09:00
Nobuyoshi Nakada
efaea5a62e
[DOC] Adjust the link to Kernel method
RDoc displays instance methods defined in `Kernel` as in `Object`.
This behavior may be somewhat questionable now, but for now it is what
it is.
2024-12-06 21:12:57 +09:00
Nobuyoshi Nakada
bf49ff95be
[DOC] Fix class and method links
Make existing (including newly added) classes, modules and methods
linkable.  Oppositely enclose removed names in backticks.
2024-12-06 21:12:57 +09:00
Hiroshi SHIBATA
69fb4a5f38
typeprof-757303fe8de0cf5e5583b4a76f8abbbd55c44776 is working with Windows 2024-12-06 20:01:37 +09:00
Nobuyoshi Nakada
cb8625e81b
[Bug #20929] NEWS for Time#zone encoding change on Windows 2024-12-06 19:40:56 +09:00
Nobuyoshi Nakada
1c15f641cc [Bug #20929] Win32: Encode timezone name in UTF-8 2024-12-06 18:59:38 +09:00
Nobuyoshi Nakada
78762b5218 [Bug #20929] Fix assert_zone_encoding
The default internal encoding is not taken into account to encode
timezone name.
2024-12-06 18:59:38 +09:00
Matt Valentine-House
58b4e249ed [MMTk/CI] Skip Ractor btests with MMTk
currently these are flaky, so until we can make them more robust, we'll
skip them for MMTk CI
2024-12-06 09:48:30 +00:00
Matt Valentine-House
7caf2ffe00 Remove the GC build check in Ubuntu.yml 2024-12-06 09:48:30 +00:00
Matt Valentine-House
ffb26a53d1 Add Modular GC (default, MMTk) builds to CI 2024-12-06 09:48:30 +00:00
tomoya ishida
5f65321915 [ruby/reline] Combine MAPPINGS(single byte input to symbol) with
key_bindings(escape sequence to symbol)
(https://github.com/ruby/reline/pull/715)

https://github.com/ruby/reline/commit/6a7e249374
2024-12-06 07:09:24 +00:00
ydah
6ccaa37eb3 [Bug #20926] Fix a crashes with shareable_constant_value: experimental_everything using parse.y's parser
https://bugs.ruby-lang.org/issues/20926
2024-12-06 12:32:20 +09:00
dependabot[bot]
af2fc89f9f Bump actions/cache in /.github/actions/setup/directories
Bumps [actions/cache](https://github.com/actions/cache) from 4.1.2 to 4.2.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](6849a64899...1bd1e32a3b)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-06 12:04:10 +09:00
Kazuhiro NISHIYAMA
892c46283a
[DOC] Sort links [ci skip] 2024-12-06 11:41:45 +09:00
Hiroshi SHIBATA
81c24b3c29 We need to specify --with-opt-dir for jemalloc installation path 2024-12-06 10:31:16 +09:00
Hiroshi SHIBATA
0b5d6c80ba Added -with-gmp build to macOS 2024-12-06 10:31:16 +09:00
Hiroshi SHIBATA
bc214d10b8 Added jemalloc build to GitHub Actions 2024-12-06 10:31:16 +09:00
Randy Stauner
b021f6f8a7
Use symbol.h in vm.c to get macro for faster ID to sym (#12272)
The macro provided by symbol.h uses STATIC_ID2SYM
when it can which speeds up methods that declare keyword args.

Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
Co-authored-by: Takashi Kokubun (k0kubun) <takashikkbn@gmail.com>
Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>
Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
2024-12-05 17:51:32 -05:00
Peter Zhu
eedb30d385 Use rb_gc_enable/rb_gc_disable_no_rest instead of ruby_disable_gc
We should use the rb_gc_enable/rb_gc_disable_no_rest APIs instead of
directly setting the ruby_disable_gc variable.
2024-12-05 16:21:37 -05:00
Matt Valentine-House
d4fb966186 [ruby/mmtk] Add MMTk test exclusions for Ruby CI
https://github.com/ruby/mmtk/commit/f62e5803f1
2024-12-05 20:12:45 +00:00
Peter Zhu
7ccad5b9f8 darray.h does not depend on internal/bits.h
darray.h no longer depends on internal/bits.h, so we can remove it.
2024-12-05 14:12:56 -05:00
Samuel Giddins
305318edbb [rubygems/rubygems] Apply suggestions from code review
https://github.com/rubygems/rubygems/commit/7c634ecd72
2024-12-05 19:00:44 +00:00
Samuel Giddins
7daf85bdf2 [rubygems/rubygems] Stop storing executable names in ivars
Removes usage of these classes as ACE gadgets

See https://nastystereo.com/security/ruby-3.4-deserialization.html

Signed-off-by: Samuel Giddins <segiddins@segiddins.me>

https://github.com/rubygems/rubygems/commit/89ad04db86
2024-12-05 19:00:44 +00:00
Aaron Patterson
6877c38866 [ruby/prism] Fix error messages for unterminated ( and {
If we hit an EOF token, and the character before the EOF is a newline,
we should make EOF token start at the previous newline.  That way any
errors reported will occur on that line.

For example "foo(\n" should report an error on line 1 even though the
EOF technically occurs on line 2.

[Bug #20918]
https://bugs.ruby-lang.org/issues/20918

https://github.com/ruby/prism/commit/60bc43de8e
2024-12-05 18:42:01 +00:00
Matt Valentine-House
d8dbc2dcba [ruby/mmtk] Support setting the mmtk thread count with MMTK_THREADS
https://github.com/ruby/mmtk/commit/e4d6b56824
2024-12-05 16:28:02 +00:00
Peter Zhu
ce1ad1b816 Standardize on the name "modular GC"
We have name fragmentation for this feature, including "shared GC",
"modular GC", and "external GC". This commit standardizes the feature
name to "modular GC" and the implementation to "GC library".
2024-12-05 10:33:26 -05:00
Stan Lo
26ab20fec1 [ruby/rdoc] Workaround JRuby's jar-dependencies error and test
failures on CI
(https://github.com/ruby/rdoc/pull/1225)

* Workaround JRuby's jar-dependencies error on CI

* Skip problematic encoding test for JRuby

https://github.com/ruby/rdoc/commit/3f9897d64c
2024-12-05 12:31:51 +00:00
Stan Lo
2ecd2fe0ed [ruby/rdoc] Deprecate main and title directives
(https://github.com/ruby/rdoc/pull/1218)

* Deprecate :main: directive

* Deprecate :title: direcive

* Update documentation

* Remove :main: directive's usage

* Update test cases

* Add '.rdoc_options' to suggested alternatives

https://github.com/ruby/rdoc/commit/e2d4ac9dad
2024-12-05 11:36:34 +00:00
Naoto Ono
866f1a1f2d
Launchable: Stop recording tests temporarily (#12268)
There is a system trouble in Launchable, so I'm going to stop recording tests temporarily in compilers.yaml
2024-12-05 17:58:46 +09:00
git
4336f413b5 Update default gems list at 811bc15c75ff12c1a89ecac0af7d09 [ci skip] 2024-12-05 08:17:20 +00:00
Jean Boussier
5335b140ab array.c: Remove unused rb_ary_verify function 2024-12-05 09:16:31 +01:00
Jean Boussier
811bc15c75 [ruby/json] Release 2.9.0
https://github.com/ruby/json/commit/e1f6456499
2024-12-05 09:16:22 +01:00
Jean Boussier
1510d72bec [ruby/json] Fix generate(script_safe: true) to not confuse unrelated characters
Fix: https://github.com/ruby/json/issues/715

The first byte check was missing.

https://github.com/ruby/json/commit/93a7f8717d
2024-12-05 09:16:22 +01:00
git
4b850ea058 Update bundled gems list at 0ef4a7d745f51751c12468d9452ede [ci skip] 2024-12-05 05:59:54 +00:00
Soutaro Matsumoto
0ef4a7d745
Bundle RBS 3.7 (#12265) 2024-12-05 05:59:18 +00:00
Jean Boussier
bf225feb26 Fix an off by one in rb_ary_resize
When setting len to X we only need to grow the array
if len is bigger than capa. If they're equal we don't need to
increase capacity.
2024-12-04 22:46:02 +01:00
Maximillian Polhill
1c4dbb133e
YJIT: Generate specialized code for Symbol for objtostring (#12247)
* YJIT: Generate specialized code for Symbol for objtostring

Co-authored-by: John Hawthorn <john@hawthorn.email>

* Update yjit/src/codegen.rs

---------

Co-authored-by: John Hawthorn <john@hawthorn.email>
Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
2024-12-04 21:34:16 +00:00
Alan Wu
c0e12bf8d2 Fix typos in public headers [ci skip] 2024-12-04 16:26:31 -05:00
Maxime Chevalier-Boisvert
4b4d52ef50
YJIT: track time since initialization (#12263) 2024-12-04 21:24:36 +00:00
Peter Zhu
3c91a1e5fd Fix ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS for MSAN
There's no case for when RUBY_MSAN_ENABLED, so the macro ends up doing
nothing when it should instead have __attribute__((__no_sanitize__("memory"))).
2024-12-04 14:29:24 -05:00
ydah
5898abd084 [ruby/prism] Add document CapturePatternNode fields
Partially: https://github.com/ruby/prism/issues/2123

https://github.com/ruby/prism/commit/1ffd693f9b
2024-12-04 17:31:21 +00:00
ydah
8a228f297e [ruby/prism] Add document CaseMatchNode fields
Partially: https://github.com/ruby/prism/issues/2123

https://github.com/ruby/prism/commit/a78da01ef6
2024-12-04 17:22:17 +00:00
ydah
f88ebb4ad7 [ruby/prism] Add document CaseNode fields
Partially: https://github.com/ruby/prism/issues/2123

https://github.com/ruby/prism/commit/2f473b0713
2024-12-04 17:22:00 +00:00
ydah
932897af0e [ruby/prism] Add document ClassVariableAndWriteNode fields
Partially: https://github.com/ruby/prism/issues/2123

https://github.com/ruby/prism/commit/7be164e0b7
2024-12-04 17:21:44 +00:00
Peter Zhu
62b51d9ad7 Use BUILDING_SHARED_GC instead of RB_AMALGAMATED_DEFAULT_GC
We can use the BUILDING_SHARED_GC flag to check if we're building gc_impl.h
as a shared GC or building the default GC.
2024-12-04 10:25:43 -05:00