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

71198 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada bffd6cbd97
Check if `execv` is available for ruby/missing.h
As MinGW has the declaration, the `dllimport` attribute difference
is warned when compiling missing/*.c without including ruby/win32.h.

```
../src/include/ruby/missing.h:316:17: warning: 'execv' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
  316 | RUBY_EXTERN int execv(const char *, char *const []);
      |                 ^~~~~
```
2022-01-26 18:23:51 +09:00
Nobuyoshi Nakada 4010cbfe35
Use the prefixed pkg-config command 2022-01-26 15:56:22 +09:00
Nobuyoshi Nakada 16e7585557
Unpoison the cached object in the exact size 2022-01-26 14:34:25 +09:00
David Rodríguez c925d3b668 [rubygems/rubygems] Fix `force_ruby_platform` ignored when lockfile includes the current specific platform
https://github.com/rubygems/rubygems/commit/9ca371adf8
2022-01-26 13:09:31 +09:00
Koichi Sasada cc8064ba2e Do not need to print to stderr 2022-01-26 10:05:10 +09:00
Koichi Sasada e953d68657 refactoring btest output
don't duplicate the message, but prepare `out` var to choose
stdout/err.
2022-01-26 09:56:27 +09:00
Koichi Sasada cac6fe9023 add `--stderr-on-failure` option to test-all
Now all failure messages are printed to stdout. This option
makes all failure messages printed into stderr.
2022-01-26 09:56:09 +09:00
Peter Zhu 142d5db112 Support ID_TABLE_STOP for replace function
Iteration should top if the replace function returns ID_TABLE_STOP.
2022-01-25 16:51:16 -05:00
Peter Zhu 82f0580aa4 Call rb_id_table_foreach_values instead
These places never replace the value, so call rb_id_table_foreach_values
instead of rb_id_table_foreach_values_with_replace.
2022-01-25 16:51:16 -05:00
Peter Zhu 4d9ad91a35 Rename rb_id_table_foreach_with_replace
Renames rb_id_table_foreach_with_replace to
rb_id_table_foreach_values_with_replace and passes only the value to the
callback. We can use this in GC compaction when we cannot access the
global symbol array.
2022-01-25 16:51:16 -05:00
Nobuyoshi Nakada 6e901939c6
Revert "`ID` in `rb_id_table_foreach_with_replace` [Feature #18253]"
This reverts commit 530e485265.
`rb_id_table_foreach_with_replace` is used during GC compaction,
and the global symbols array can have been moved at that time.
2022-01-26 05:57:01 +09:00
git ac57405235 * 2022-01-26 [ci skip] 2022-01-26 02:24:46 +09:00
Ngan Pham 42ef3fcaef [rubygems/rubygems] Use Gem::Platform.local instead of RUBY_PLATFORM
In certain places, we want to display the platform name with
`Gem::Platform.local` instead of `RUBY_PLATFORM`.

Fixes https://github.com/rubygems/rubygems/issues/5264

https://github.com/rubygems/rubygems/commit/bdd1848ae8
2022-01-26 02:24:30 +09:00
Peter Zhu b07879e553 Remove redundant if statement in try_move
The if statement is redundant since if `index == 0` then
`BITS_BITLENGTH * index == 0`.
2022-01-25 09:38:17 -05:00
Nobuyoshi Nakada e3b5cc8836
NEWS: `Fixnum` and `Bignum` are removed finally [Feature #12005] 2022-01-25 23:10:20 +09:00
David Rodríguez 342e7a094a [rubygems/rubygems] Fix spec to not touch the network
And not depend on the state of rack's master branch, in particular, on
their Ruby support range.

https://github.com/rubygems/rubygems/commit/9ea4baffac
2022-01-25 22:12:33 +09:00
David Rodríguez cd806e19b7 [rubygems/rubygems] Remove unnecessary comment
https://github.com/rubygems/rubygems/commit/ef4e5c6169
2022-01-25 22:12:33 +09:00
Koichi Sasada a51e1cd682 enable `RUBY_ON_BUG` on release build
[Feature #18483]
2022-01-25 16:43:57 +09:00
David Rodríguez de678cd51e
[ruby/pathname] Officially drop support for ruby 2.6 or older
The gem doesn't even install on old rubies, but since the gemspec claims
it's supported, `gem install pathname` will try to install it and print
an error.

This commit doesn't fix the above issue. The only way to fix it would be
to restore support and release a new version that actually supports old
rubies. However, such a change has been proposed and ignored for a long
time.

So this issue proposes to leave that broken but at least bring the
gemspec manifest and the CI matrix in sync to hopefully avoid this issue
from happening again in the future.

https://github.com/ruby/pathname/commit/3ee010b538
2022-01-25 08:50:31 +09:00
Nobuyoshi Nakada 530e485265 `ID` in `rb_id_table_foreach_with_replace` [Feature #18253]
Pass the `ID` from `rb_id_table_foreach_with_replace` to callback
functions.
2022-01-24 15:40:47 -08:00
Peter Zhu 87784fdeb2 Keep right operand within width when right shifting
NUM_IN_PAGE could return a value much larger than 64. According to the
C11 spec 6.5.7 paragraph 3 this is undefined behavior:

> If the value of the right operand is negative or is greater than or
> equal to the width of the promoted left operand, the behavior is
> undefined.

On most platforms, this is usually not a problem as the architecture
will mask off all out-of-range bits.
2022-01-24 14:34:12 -05:00
git 97ab2599f3 * 2022-01-25 [ci skip] 2022-01-25 01:11:53 +09:00
David Rodríguez 4317a6750d [rubygems/rubygems] Forbid downgrading past the originally shipped version on Ruby 3.1
https://github.com/rubygems/rubygems/commit/68bef90339
2022-01-25 01:11:39 +09:00
Peter Zhu 663833b08f [wasm] Disallow compaction
WebAssembly doesn't support signals so we can't use read
barriers so we can't use compaction.
2022-01-24 09:21:08 -05:00
Nobuyoshi Nakada 5de62fe37c
Fixed an missing percent in the batch file 2022-01-24 18:10:17 +09:00
Nobuyoshi Nakada 85502f3a51 [ruby/io-wait] [DOC] Fix the return values [ci skip]
Even since 0.1.0, other than +true+ or +false+ may be returned.

https://github.com/ruby/io-wait/commit/d0721e300a
2022-01-24 18:03:48 +09:00
apatniv e7b573e576 [ruby/io-wait] Document mandatory require for using io/wait methods
https://github.com/ruby/io-wait/commit/2beb05bd48
2022-01-24 12:12:15 +09:00
git c6a19b77a2 Update default gems list at 328e6bf3b3 [ci skip] 2022-01-24 01:57:23 +00:00
Kenta Murata 328e6bf3b3
[ruby/bigdecimal] Version 3.1.2
https://github.com/ruby/bigdecimal/commit/57e2194135
2022-01-24 10:56:37 +09:00
Kenta Murata 7db195d521
[ruby/bigdecimal] Fix the maximum precision of the quotient
Fixes https://github.com/ruby/bigdecimal/pull/220

https://github.com/ruby/bigdecimal/commit/127a1b5a31
2022-01-24 10:56:30 +09:00
Kenta Murata 506728d0b8
[ruby/bigdecimal] Fix typo
https://github.com/ruby/bigdecimal/commit/79c09b4dac
2022-01-24 10:56:25 +09:00
gemmaro d77f2ff5b4 [ruby/rdoc] Fix typo in RDoc::Task example
https://github.com/ruby/rdoc/commit/7a77e55c2a
2022-01-24 10:17:16 +09:00
git 52caeb47e7 * 2022-01-24 [ci skip] 2022-01-24 07:00:51 +09:00
Postmodern c155445752 [ruby/reline] Ignore global constants when checking if Fiddle::VERSION exists
If a top-level `VERSION` constant exists, or if a module containing a `VERSION` constant is included into the top-level scope, then `Fiddle.const_defined?(:VERSION)` will erroneously return true when `RUBY_VERSION < 3.0.0`.

https://github.com/ruby/reline/commit/8529c8e47a
2022-01-24 07:00:34 +09:00
Kazuhiro NISHIYAMA bb955096d8
Fix a typo [ci skip] 2022-01-23 21:56:39 +09:00
git ab1aa90c32 * 2022-01-23 [ci skip] 2022-01-23 01:02:38 +09:00
Nobuyoshi Nakada 355bc37196
Reuse the default `AC_LANG_PROGRAM(C)` definition 2022-01-23 01:02:11 +09:00
Nobuyoshi Nakada ad150a1459
Override `AC_C_PROGRAM` on old autoconf
Autoconf 2.69 fails to detect `-Werror=old-style-definition` due
to the old style definition of `main`.
2022-01-22 20:13:46 +09:00
Nobuyoshi Nakada 2c25427496
GCC provides -Wdiv-by-zero 2022-01-22 20:09:56 +09:00
Kazuhiro NISHIYAMA c00e360bc0
Fix error: old-style function definition
https://rubyci.s3.amazonaws.com/debian-riscv64/ruby-master/log/20220122T050018Z.log.html.gz#miniruby
```
compiling vm_trace.c
vm_trace.c: In function 'rb_vm_memsize_postponed_job_buffer':
vm_trace.c:1599:1: error: old-style function definition [-Werror=old-style-definition]
 1599 | rb_vm_memsize_postponed_job_buffer()
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
2022-01-22 15:48:05 +09:00
Seth Boyles c1a6ff046d [ruby/psych] Add strict_integer option to parse numbers with commas as strings
Authored-by: Seth Boyles <sethboyles@gmail.com>

https://github.com/ruby/psych/commit/75bebb37b8
2022-01-22 10:00:51 +09:00
git b815a0bd75 * 2022-01-22 [ci skip] 2022-01-22 07:35:12 +09:00
Kevin Newton fc6fd4c31e Accurately report VM memsize
Currently the calculation only counts the size of the struct. This commit adds the size of the associated st tables, id tables, and linked lists.

Still missing is the size of the ractors and (potentially) the size of the object space.
2022-01-21 14:34:53 -08:00
Koichi Sasada 5e3a320218 respect `--quiet` option for btest
Do not print anymore except errors.
2022-01-21 17:38:11 +09:00
git a15c50d6a1 * 2022-01-21 [ci skip] 2022-01-21 12:23:48 +09:00
Nobuyoshi Nakada 542bd9b408 [ruby/etc] Exclude change logs for pre 1.0
https://github.com/ruby/etc/commit/c8a133fe95
2022-01-21 12:22:04 +09:00
Nobuyoshi Nakada 563d0fdada [ruby/etc] Derive extra_rdoc_files from files
https://github.com/ruby/etc/commit/e8ecce3442
2022-01-21 12:21:59 +09:00
Nobuyoshi Nakada 3fea4f9d8c [ruby/etc] Move development dependencies to Gemfile
https://github.com/ruby/etc/commit/5cabc3996a
2022-01-21 12:21:54 +09:00
Nobuyoshi Nakada 59a91f229b
Mark `rb_clear_constant_cache` as internal use only
In the past, many internal functions are declared in intern.h
under include/ruby directory, because there were no headers for
internal use.
2022-01-20 13:54:37 +09:00
Nobuyoshi Nakada 82b0a9004c
[wasm] skip pull-requests labeled as Documentation [ci skip] 2022-01-20 13:18:33 +09:00