Commit graph

7328 commits

Author SHA1 Message Date
Hiroshi SHIBATA
0a3704f218
bump teeny 2025-03-26 13:20:36 +09:00
git
385400217a * 2025-03-06 [ci skip] 2025-03-06 01:06:42 +00:00
git
bc2311fce0 * 2025-02-28 [ci skip] 2025-02-28 07:43:48 +00:00
git
35534fb92f * 2025-02-26 [ci skip] 2025-02-26 09:49:52 +00:00
git
78fe0b6e5c * 2025-02-14 [ci skip] 2025-02-14 06:58:32 +00:00
git
326a6cbf9b * 2024-12-03 [ci skip] 2024-12-03 02:09:57 +00:00
git
430bcf8a57 * 2024-11-20 [ci skip] 2024-11-20 09:19:04 +00:00
git
40e058a1a9 * 2024-11-19 [ci skip] 2024-11-19 10:16:19 +00:00
git
7a4f7df335 * 2024-11-11 [ci skip] 2024-11-11 07:06:59 +00:00
git
c7c895ce06 * 2024-11-06 [ci skip] 2024-11-06 04:30:42 +00:00
git
19c93a5c8f * 2024-11-01 [ci skip] 2024-11-01 01:16:10 +00:00
git
f14d521094 * 2024-09-30 [ci skip] 2024-09-30 07:02:00 +00:00
git
30d00a0b43 * 2024-09-10 [ci skip] 2024-09-10 07:00:41 +00:00
git
11f5dc61b4 * 2024-08-08 [ci skip] 2024-08-08 09:07:26 +00:00
git
3b6f1d18f2 * 2024-08-07 [ci skip] 2024-08-07 01:51:59 +00:00
git
d6a718e9f4 * 2024-07-16 [ci skip] 2024-07-16 10:02:41 +00:00
git
0187cbbbf3 * 2024-06-19 [ci skip] 2024-06-19 04:34:57 +00:00
git
9554bca8b2 * 2024-05-30 [ci skip] 2024-05-30 01:34:50 +00:00
Hiroshi SHIBATA
a777087be6
Bump up 3.1.6 2024-05-29 12:54:36 +09:00
git
7ef3a758ee * 2024-05-24 [ci skip] 2024-05-24 04:02:13 +00:00
Hiroshi SHIBATA
0a67190735 merge revision(s) ae8990aef0:
Alias init functions

	The extension library has each initialization function named "Init_" +
	basename. If multiple extensions have the same base name (such as
	cgi/escape and erb/escape), the same function will be registered for
	both names.

	To fix this conflict, rename the initialization functions under sub
	directories using using parent names, when statically linking.
	---
	 ext/extmk.rb            | 16 +++++++++++++++-
	 template/extinit.c.tmpl |  2 +-
	 2 files changed, 16 insertions(+), 2 deletions(-)
2024-05-23 14:12:53 +09:00
Hiroshi SHIBATA
60fb6d4859 merge revision(s) 7f87ad9fc4:
Refer autoconfigured endian macro (#10572)

	Remove the case `RB_IO_BUFFER_HOST_ENDIAN` is not defined.
	---
	 include/ruby/io/buffer.h | 8 ++------
	 1 file changed, 2 insertions(+), 6 deletions(-)
2024-05-23 13:24:36 +09:00
Hiroshi SHIBATA
c54f52fb4d merge revision(s) 1faeb44dfc:
Check if macros are defined before using

	Assume macros with the same prefix would be defined together.
	---
	 include/ruby/io/buffer.h | 8 ++++----
	 1 file changed, 4 insertions(+), 4 deletions(-)
2024-05-23 13:24:36 +09:00
Hiroshi SHIBATA
c884de63c8 merge revision(s) 48644e7109:
tool/runruby.rb: remove LD_PRELOAD-like env-var options from
	 runruby.rb

	LD_PRELOAD sometimes forces loading libraries into unrelated
	executables. For example, macOS on recent Apple Silicon can execute
	arm64 and arm64e binaries by default, and /usr/bin/clang is built as
	arm64e. If Ruby is built as arm64, and mkmf launched through runruby.rb
	spawns /usr/bin/clang, dynamic loader tries to load libruby (arm64e)
	into clang (arm64). This force-load causes library load failure.
	In theory, we don't need both LD_PRELOAD and LD_LIBRARY_PATH at the same
	time, because executables requiring libruby already have libruby
	dependency, so LD_LIBRARY_PATH is enough for this case.
	---
	 tool/runruby.rb | 9 ---------
	 1 file changed, 9 deletions(-)
2024-05-23 11:58:26 +09:00
git
3abd03989d * 2024-05-23 [ci skip] 2024-05-23 01:58:06 +00:00
Hiroshi SHIBATA
07c11226a0 merge revision(s) cfc564ac40:
Include headers for `ruby_qsort` only if needed

	If GNU `qsort_r` is available, we use the function and these headers
	are not used.
	---
	 util.c | 4 ++--
	 1 file changed, 2 insertions(+), 2 deletions(-)
2024-05-21 14:06:43 +09:00
Hiroshi SHIBATA
24d7a1c6e7 merge revision(s) ed3d8f74ec:
Delete a macro that has never been used, probably added by mistake

	---
	 util.c | 7 -------
	 1 file changed, 7 deletions(-)
2024-05-21 14:06:43 +09:00
Hiroshi SHIBATA
122b510b94 merge revision(s) 7400628cb0:
[Bug #18997] Don't define ruby_qsort when POSIX qsort_r is available

	The current code would define ruby_qsort as a wrapper of qsort_s
	when it is available. When both qsort_s and POSIX (GNU) qsort_r
	are available, we should call qsort_r directly instead, and
	the qsort_s wrapper is redundant.
	---
	 util.c | 6 ++++--
	 1 file changed, 4 insertions(+), 2 deletions(-)
2024-05-21 14:06:43 +09:00
git
cbc84b8060 * 2024-05-17 [ci skip] 2024-05-17 08:26:12 +00:00
Hiroshi SHIBATA
1945f8dc0e
Bump up 3.1.5 2024-04-23 19:20:59 +09:00
Hiroshi SHIBATA
bfe9164a84
merge revision(s) 989a235580:
Fix Use-After-Free issue for Regexp

	Co-authored-by: Isaac Peka <7493006+isaac-peka@users.noreply.github.com>
	---
	 regexec.c | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)
2024-04-23 19:20:20 +09:00
Hiroshi SHIBATA
8f66566451
merge revision(s) 33e5b47c16:
Fix handling of reg->dmin in Regex matching

	---
	 regexec.c | 10 ++++++++++
	 1 file changed, 10 insertions(+)
2024-04-23 19:19:57 +09:00
git
067690863d * 2024-04-23 [ci skip] 2024-04-23 07:05:05 +00:00
git
3229fb9769 * 2024-04-15 [ci skip] 2024-04-15 05:05:45 +00:00
git
48619a0d9b * 2024-01-11 [ci skip] 2024-01-11 08:04:05 +00:00
git
cb4b2917ce * 2023-12-03 [ci skip] 2023-12-03 09:54:33 +00:00
U.Nakamura
1cae5e7cea merge revision(s) 9eac9d7178: [Backport #19969]
[Bug #19969] Compact st_table after deleted if possible

	---
	 hash.c                 | 19 +++++++++++++++++++
	 st.c                   | 40 +++++++++++++++++++++++++++++-----------
	 test/ruby/test_hash.rb |  9 +++++++++
	 3 files changed, 57 insertions(+), 11 deletions(-)
2023-11-20 21:11:21 +09:00
git
0880158f6b * 2023-11-14 [ci skip] 2023-11-14 09:27:36 +00:00
git
3d32962ed0 * 2023-11-10 [ci skip] 2023-11-10 07:56:31 +00:00
Nobuyoshi Nakada
42325aa826 Ease the Encoding::CompatibilityError test failure
At the time this test first started using `assert_raise_with_message`,
it did not touch `Encoding.default_internal`.
2023-11-07 15:30:35 +09:00
U.Nakamura
881088e06f merge revision(s) 4329554f17: [Backport #19985]
[Bug #19985] Raise LoadError with the converted feature name

	`Kernel#require` converts feature name objects that have the `to_path`
	method such as `Pathname`, but had used the original object on error
	and had resulted in an unexpected `TypeError`.
	---
	 load.c                    | 14 +++++++++++---
	 test/ruby/test_require.rb | 26 +++++++++++++++++++++-----
	 2 files changed, 32 insertions(+), 8 deletions(-)
2023-11-06 20:22:27 +09:00
U.Nakamura
4f7b595815 merge revision(s) 19346c2336: [Backport #19754]
[Bug #19754] Make `IO::Buffer#get_string` check `offset` range
	 (#8016)

	---
	 io_buffer.c                 | 3 +++
	 test/ruby/test_io_buffer.rb | 8 ++++++++
	 2 files changed, 11 insertions(+)
2023-11-06 20:18:14 +09:00
U.Nakamura
d494cf4dda merge revision(s) 4a7d6c2852: [Backport #18991]
Fix false LocalJumpError when branch coverage is enabled

	`throw TAG_BREAK` instruction makes a jump only if the continuation of
	catch of TAG_BREAK exactly matches the instruction immediately following
	the "send" instruction that is currently being executed. Otherwise, it
	seems to determine break from proc-closure.

	Branch coverage may insert some recording instructions after "send"
	instruction, which broke the conditions for TAG_BREAK to work properly.

	This change forces to set the continuation of catch of TAG_BREAK
	immediately after "send" (or "invokesuper") instruction.

	[Bug #18991]
	---
	 compile.c                      | 25 ++++++++++++++++++++++++-
	 test/coverage/test_coverage.rb | 14 ++++++++++++++
	 2 files changed, 38 insertions(+), 1 deletion(-)
2023-11-06 20:14:41 +09:00
git
18b7c768fe * 2023-10-30 [ci skip] 2023-10-30 06:25:42 +00:00
U.Nakamura
8563a144fd merge revision(s) bcb3247072e6973d0f6b50ca5fed238d5824bd28,fe0225ff4d5af8b1f54009727b39d0d9b821eea3: [Backport #19778]
[Bug #19778] Pass additional include options to INCFLAGS in common.mk

	---
	 common.mk            | 2 +-
	 configure.ac         | 1 +
	 template/Makefile.in | 1 +
	 3 files changed, 3 insertions(+), 1 deletion(-)

	[Bug #19778] Add `-I` options for opt-dir to `$INCFLAGS`

	These options have been separated from `$CFLAGS` already in the
	other places.
	---
	 configure.ac | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)
2023-10-17 20:51:50 +09:00
U.Nakamura
a3e1444663 merge revision(s) 96c5a4be7b: [Backport #19894]
Fix memory leak in complemented method entries

    [Bug #19894]

    When a copy of a complemented method entry is created, there are two
    issues:

    1. IMEMO_FL_USER3 is not copied, so the complemented status is not
       copied over.
    2. In rb_method_entry_clone we increment both alias_count and
       complemented_count. However, when we free the method entry in
       rb_method_definition_release, we only decrement one of the two
       counters, resulting in the rb_method_definition_t being leaked.

    Co-authored-by: Adam Hess <adamhess1991@gmail.com>
    ---
     method.h                 |  5 +++--
     test/ruby/test_module.rb | 29 +++++++++++++++++++++++++++++
     vm_method.c              |  8 +++++---
     3 files changed, 37 insertions(+), 5 deletions(-)
2023-10-17 20:30:28 +09:00
U.Nakamura
84f2aabd27 merge revision(s) ada9f8a9f7: [Backport #18914]
[ruby/fiddle] closure: follow variable name change

	GitHub: GH-102

	2530496602
	---
	 ext/fiddle/closure.c | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)
2023-10-10 20:52:53 +09:00
U.Nakamura
92d155ce4a Should not do brew upgrade
See 1b0da1e623
2023-10-10 20:09:14 +09:00
U.Nakamura
eb54ed809f merge revision(s) a28c5151f5: [Backport #19855]
Fix Array#bsearch when block returns a non-integer numeric value

	---
	 array.c                 | 4 ++--
	 test/ruby/test_array.rb | 4 ++++
	 2 files changed, 6 insertions(+), 2 deletions(-)
2023-10-10 20:02:12 +09:00
U.Nakamura
4153e807c5 Fix an ommission of previous fix 2023-09-19 20:24:27 +09:00