Commit graph

89125 commits

Author SHA1 Message Date
Lars Kanis
473fb6385e [ruby/fiddle] Implement Fiddle::Pointer.read and .write on the
FFI backend
(https://github.com/ruby/fiddle/pull/165)

0bd963d3b8
2024-12-11 14:48:16 +09:00
Nobuyoshi Nakada
0c7fe4b092 [ruby/fiddle] Fix the glob pattern to include /usr/lib
(https://github.com/ruby/fiddle/pull/164)

Fix up #161.

481651e836
2024-12-11 14:48:15 +09:00
dependabot[bot]
80038b9c9c Bump github/codeql-action from 3.27.6 to 3.27.7
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.27.6 to 3.27.7.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](aa57810251...babb554ede)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-11 11:51:35 +09:00
Maxime Chevalier-Boisvert
c71f7faaa9
YJIT: add MPLR talk link. Encourage users to use --yjit-mem-size (#12305)
* Add MPLR talk. Encourage users to use --yjit-mem-size.

* Improve text
2024-12-10 18:16:24 -05:00
Peter Zhu
5edf1c8feb Improve NEWS.md for modular GC [DOC] 2024-12-10 12:59:36 -05:00
Nobuyoshi Nakada
979543e7bf
Use rb_str_conv_enc for simplicity 2024-12-11 01:13:15 +09:00
Nobuyoshi Nakada
e90b447655
[Bug #20924] Fix reading with delimiter in wide character encodings 2024-12-10 23:57:57 +09:00
Kouhei Yanagita
3422bfcab6 [Bug #20936] Fix #size for Range#reverse_each 2024-12-10 23:12:27 +09:00
Andrew Konchin
d5abcae435 Fix formatting of spec/ruby/optional/capi/ext/hash_spec.c 2024-12-10 14:38:52 +01:00
Andrew Konchin
de5df203bc Update to ruby/spec@9f10222 2024-12-10 14:38:52 +01:00
Andrew Konchin
a90d8c335a Update to ruby/mspec@c600b8f 2024-12-10 14:38:52 +01:00
tomoya ishida
3568e7aef7 [ruby/reline] Fix line wrapped cursor position
(https://github.com/ruby/reline/pull/791)

Cursor position calculation was wrong when the input line contains "\1" or CSI escape sequence.

a1943daaf4
2024-12-10 10:28:22 +00:00
David Rodríguez
ebb80c26b3 [ruby/resolv] Securerandom should be always available
324c355eb7
2024-12-10 10:08:49 +00:00
Nobuyoshi Nakada
af9a904f38 [ruby/resolv] Build the extension library only when CRuby (Fix
https://github.com/ruby/resolv/pull/69)

On JRuby no C compiler is available and this call results in a runtime
error.

33105bc504
2024-12-10 09:29:38 +00:00
git
fea83a4b80 Update bundled gems list at 19b684637f [ci skip] 2024-12-10 08:18:20 +00:00
Hiroshi SHIBATA
19b684637f Update bundled_gems 2024-12-10 17:17:50 +09:00
Nobuyoshi Nakada
f12e2622c1 Split system dependent commands to clean modular-gc 2024-12-10 12:31:47 +09:00
ydah
ce2f398386 Remove unused macros from parse.y 2024-12-10 12:21:19 +09:00
ydah
bfb7571d24 Remove minimum Bison version requirement from parse.y
How about removing `%require “version”` since it is a definition to specify the minimum version of Bison and is not needed now that we have completely moved to Lrama?

see: https://www.gnu.org/software/bison/manual/html_node/Require-Decl.html
2024-12-10 11:50:36 +09:00
NAITOH Jun
cb8f186205
[ruby/strscan] [DOC] doc/strscan/strscan.md - update Matcher Methods
(https://github.com/ruby/strscan/pull/123)

Added support for string pattern type in
https://github.com/ruby/strscan/pull/106.
And fix Success Return content.

6a5acde674
2024-12-10 11:30:19 +09:00
Dani Smith
b5ed7aae3b
[ruby/fiddle] Fix test_dlopen_linker_script_input_linux being
omitted on Fedora 40 aarch64
(https://github.com/ruby/fiddle/pull/161)

I found working on Fedora 40 on aarch64 that
`test_dlopen_linker_script_input_linux` was omitted due to not finding
libncurses.so, since it is in /usr/lib64. This PR makes the glob a
little more portable.

444774c0c4
2024-12-10 11:30:19 +09:00
Naoto Ono
462e2cfccf
Launchable: Remove unnecessary command (#12299)
`launchable verify` command is designed for checking if CLI has been configured successfully. We've already checked it, so we don't need calling this command anymore.
2024-12-10 02:15:01 +00:00
Peter Zhu
cfc2b21a05 Clean all modular GCs
We should run `make clean` or `make distclean` on each of the GC directories.
2024-12-09 16:35:21 -05:00
Peter Zhu
5d4242fa81 Only delete gc directory if empty
If building in the source directory, this will delete the gc directory.
2024-12-09 16:35:21 -05:00
Peter Zhu
88d49628dd Don't delete .gc directory
We build in the gc directory since commit d057503252,
so we don't need to remove the .gc directory.
2024-12-09 16:35:21 -05:00
Alan Wu
0c9c6efc20 Add missing fiber nil check to avoid slow rb_check_funcall()
Check for nil like other callers of rb_fiber_scheduler_current().
2024-12-09 16:20:01 -05:00
Alan Wu
476d655053 objspace_dump: Use FILE* to avoid crashing in mark functions
We observed crashes from rb_io_bufwrite() thread switching (through
rb_thread_check_ints()) in the middle of rb_execution_context_mark(). By
the time rb_execution_context_mark() gets a timeslice again, it read
garbage from a frame that was already popped in another thread, crashing
the process in SEGV. Other mark functions probably have their own ways
of breaking, but clearly, the usual IO code do too much for this
perilous pseudo GC context.

Use `FILE*` like before 5001cc4716
("Optimize ObjectSpace.dump_all"). Also, add type checking for
the private _dump methods.

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2024-12-09 16:08:35 -05:00
Peter Zhu
de7feb0538 [ruby/mmtk] Also remove .rustc_info.json in clean-mmtk target
4b67c8b4da
2024-12-09 19:11:49 +00:00
Peter Zhu
ea7e34fd5d [ruby/mmtk] Add target clean-mmtk to clean Rust debug and release directories
1f71cb873c
2024-12-09 18:37:07 +00:00
Takashi Kokubun
14e0a40cd0 YJIT: Add a comment about a lazy frame call
jit_prepare_lazy_frame_call is a complicated trick and comes with memory
overhead. Every use of the function should come with justification.
2024-12-09 10:09:40 -08:00
Takashi Kokubun
cff031253f
YJIT: Spill/load argument registers to reuse blocks (#12287)
* YJIT: Spill/load argument registers to reuse blocks

* Mention the immediate function name

* Explain the context behind spill/load operations
2024-12-09 10:02:40 -08:00
Stan Lo
93f8de777f [ruby/rdoc] Expand rdoc-ref targets at the end of ri output
(https://github.com/ruby/rdoc/pull/1141)

There have been several document refactors in ruby/ruby that extract
individual methods/classes' documentation into separate files, like
ruby/ruby#6567

Because RI is not capable of rendering those references, RI users
are left with dramatically fewer documentation on those methods/classes.

This commit adds a new option `--expand-ref` (default: true) to expand
all the rdoc-ref targets at the end of the output.

9e2b28c6e3
2024-12-09 17:21:01 +00:00
Peter Zhu
7341a4fc07 [Bug #20933] Fix IO::Buffer overlap calculation
The allocated buffers may be consecutive memory addresses. This will mean
that `b->base == a->base + a->size` even though `a` and `b` are separate
buffers.
2024-12-09 11:52:02 -05:00
Max Bernstein
8010d79bb4
YJIT: Only enable disassembly colors for tty (#12283)
* YJIT: Use fully-qualified name for OPTIONS in get_options!

* YJIT: Only enable disassembly colors for tty
2024-12-09 10:36:17 -05:00
Misaki Shioi
b11287706f
Fix Connection Attempt Delay of Socket.tcp (#12291)
The following two commits fix the proper clearing of the Connection Attempt Delay in `TCPSocket.new`.

- b2f610b0ed
- 6f4efaec53

The same fix will be applied to `Socket.tcp`.
2024-12-10 00:08:56 +09:00
Naoto Ono
652b0c13a7
Launchable: Remove FIXME comment (#12293)
https://github.com/launchableinc/cli/issues/786 has already been solved, so we can remove the comment.
2024-12-09 08:00:19 +00:00
Naoto Ono
676b4ec04b
Enable more Launchable integration in bootstraptest and test-all (#12255) 2024-12-09 16:25:43 +09:00
git
1279b5b90e Update default gems list at 7716124759 [ci skip] 2024-12-09 05:07:03 +00:00
Hiroshi SHIBATA
7716124759 [ruby/etc] Bump up 1.4.5
5019f4314a
2024-12-09 14:06:05 +09:00
Hiroshi SHIBATA
ef2b538502 [ruby/psych] Bump up 5.2.1
7c81f7db53
2024-12-09 14:05:12 +09:00
Hiroshi SHIBATA
bb74fa7a3d
Added did_you_mean-2.0.0 change to NEWS.md
https://github.com/ruby/did_you_mean/pull/194
2024-12-09 13:13:31 +09:00
Hiroshi SHIBATA
2a8c8ee92d
Move compatibility changes of stdlib to that section 2024-12-09 13:10:26 +09:00
Naoto Ono
c73552e473
Revert "Launchable: Stop recording tests temporarily" (#12289)
Revert "Launchable: Stop recording tests temporarily (#12268)"

This reverts commit 866f1a1f2d.
2024-12-09 11:31:13 +09:00
OKURA Masafumi
895f2c2152 [ruby/rdoc] lint: Remove unreachable code
(https://github.com/ruby/rdoc/pull/1137)

This is an attempt to utilize RuboCop further.
RuboCop was added in 9262fdd43a
but only a few rules have been enabled.
I believe we can utilize RuboCop more for better code quality,
especially with Lint cops.
This is the first step to enable other Lint cops.
This commit also exclude some auto generated files.

a53287fce0
2024-12-08 23:14:18 +00:00
nicholas a. evans
dd43af3be7 [ruby/rdoc] Use distinct styles for note lists and label lists
(https://github.com/ruby/rdoc/pull/1209)

* Use the original `label` description list style

As a default for all description lists, the original "label" style is
more readable.

This is slightly different from the original `label` dl though:
* slightly increased left margin for `dd` (to 1em)
* removed right margin on `dd`
* removed `dt` bottom margin and `dd` top margin, to reduce the gap
  between the term and its description (to only the standard line-height
  gap).

* Add closing tags for description list terms

Without the closing tags, the dt elements contain whitespace after the
text.  This normally isn't a big deal, but does mess some things up,
e.g: using `::after` with `content: ", "` in stylesheets.

* Restore float:left style for note lists

Unlike the original note list styles, this version sets the line-height
for all `dt` elements to be the same as the `p` elements contained
inside the `dd`, so that the second line has the same indentation as all
subsequent lines.

* Add commas between note list terms

9e69ea6d75
2024-12-08 10:43:47 +00:00
Nobuyoshi Nakada
bd831bcca5
[Bug #20929] Win32: Use wcsftime
`_strftime_l` is not available on msvcrt that is still used by 32bit
mingw compiler.
2024-12-07 19:02:17 +09:00
Kazuki Yamaguchi
c9bbf7e3eb [ruby/openssl] ssl: do not clear existing SSL options in SSLContext#set_params
Apply SSL options set in DEFAULT_PARAMS without clearing existing
options.

It currently clears options in order to avoid setting one of the
options included in OpenSSL::SSL::OP_ALL unless explicitly specified,
namely OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS. Now that
OpenSSL::SSL::OP_ALL has been removed from SSLContext#initialize, it is
no longer necessary.

77c3db2d65
2024-12-07 08:15:08 +00:00
Kazuki Yamaguchi
510c190739 [ruby/openssl] ssl: do not enable OpenSSL::SSL::OP_ALL by default
Respect the SSL options set by default by SSL_CTX() and by the
system-wide OpenSSL configuration file.

OpenSSL::SSL::SSLContext#initialize currently adds OpenSSL::SSL::OP_ALL
on top of the default SSL options. Let's stop doing it.

OpenSSL::SSL::OP_ALL is a set of options that changes OpenSSL's behavior
to workaround various TLS implementation bugs. Using it is considered
usually safe, but is not completely harmless.

00bec0d905
2024-12-07 08:15:08 +00:00
Kazuki Yamaguchi
33196b7ab0 [ruby/openssl] ssl: improve documentation of SSLContext#options=
9120fcde6a
2024-12-07 08:15:07 +00:00
Kazuki Yamaguchi
09d516b62e [ruby/openssl] Call Init_ossl_*() functions in alphabetical order
It was originally sorted in alphabetical order, but it has been broken
over time. Let's fix it.

974c67f38f
2024-12-07 07:55:47 +00:00