Peter Zhu
33bc398b73
[rubygems/rubygems] Fix rubocop violations
...
https://github.com/rubygems/rubygems/commit/cc12e68637
2022-11-07 10:52:15 +00:00
Peter Zhu
b228effd0c
[rubygems/rubygems] Drop support for IRIX
...
The IRIX OS is no longer maintained with the last release being 16 years
ago.
https://github.com/rubygems/rubygems/commit/5381c6a871
2022-11-07 10:52:14 +00:00
Peter Zhu
1e53ebae57
[rubygems/rubygems] Drop support for bitrig
...
The bitrig OS is no longer maintained with the last release being 7
years ago.
https://github.com/rubygems/rubygems/commit/85ed90ddd0
2022-11-07 10:52:14 +00:00
Peter Zhu
0fb7a1c77c
[rubygems/rubygems] Drop support for HP-UX
...
Support for HP-UX was dropped in Ruby in ruby/ruby#5457 .
https://github.com/rubygems/rubygems/commit/a3a8df3582
2022-11-07 10:52:13 +00:00
Nobuyoshi Nakada
011d4c57d2
[Bug #19106 ] Normalize time at 24:00:00 with a timezone object
2022-11-07 15:56:12 +09:00
Nobuyoshi Nakada
ee86b57ee5
Revert jobserver handling in spec
2022-11-07 15:54:40 +09:00
Nobuyoshi Nakada
b02b8e7756
Let other test runners follow the change of GNU make 4.4 jobserver
2022-11-07 10:08:30 +09:00
Nobuyoshi Nakada
ab01b8f23f
jobserver option may not be at the last
2022-11-07 10:08:09 +09:00
Nobuyoshi Nakada
180d37c817
Set `autoclose:` for inherited FDs only [ci skip]
2022-11-07 09:06:15 +09:00
Nobuyoshi Nakada
12883f8fa6
GNU make 4.4 now uses a fifo for the jobserver
2022-11-06 23:39:55 +09:00
Nobuyoshi Nakada
fc842c9ccc
Check `rustc` with the target
2022-11-06 19:32:50 +09:00
Nobuyoshi Nakada
9627aab825
`--disable-jit-support` should disable YJIT successfully
...
Even if `rustc` is available, it should not be an error unless
`--enable-yjit` is explicitly given.
2022-11-06 17:07:44 +09:00
Nobuyoshi Nakada
cb899a990a
Disable YJIT support when cross-compiling
...
As the target-list of `rustc` is different from `config.guess` and
`config.sub`, `$target` cannot be used directly.
2022-11-06 10:16:12 +09:00
Nobuyoshi Nakada
1454f8f219
Add `--target` option to RUSTC when cross-compiling
2022-11-06 06:47:38 +09:00
Nobuyoshi Nakada
10fd1d9507
Should use the configured rustc consistently
2022-11-06 06:47:38 +09:00
Yuta Saito
3a6cdeda89
[wasm] Scan machine stack based on `ec->machine.stack_{start,end}`
...
fiber machine stack is placed outside of C stack allocated by wasm-ld,
so highest stack address recorded by `rb_wasm_record_stack_base` is
invalid when running on non-main fiber.
Therefore, we should scan `stack_{start,end}` which always point a valid
stack range in any context.
2022-11-06 05:03:21 +09:00
Yusuke Endoh
267452e6fe
Sync TRICK 2018 (02-mame)
...
https://github.com/tric/trick2018/pull/5
2022-11-05 23:18:32 +09:00
Takashi Kokubun
9af344a421
[ruby/erb] Revert the strpbrk optimization
...
because it's much slower on M1 https://github.com/ruby/erb/pull/29 .
It'd be too complicated to switch the implementation based on known
optimized platforms / versions.
Besides, short strings are the most common usages of this method and
SIMD doesn't really help that case. All in all, I can't justify the
existence of this code.
https://github.com/ruby/erb/commit/30691c8995
2022-11-05 08:34:32 +00:00
Takashi Kokubun
458d6fb15e
[ruby/erb] Optimize away the rb_convert_type call using RB_TYPE_P
...
https://github.com/ruby/erb/commit/12058c3784
2022-11-05 07:52:46 +00:00
Takashi Kokubun
e8873e01b6
[ruby/erb] Use strpbrk only when str is long enough for SIMD
...
This is the same trick used by https://github.com/k0kubun/hescape to
choose the best strategy for different scenarios.
https://github.com/ruby/erb/commit/af26da2858
2022-11-05 07:52:45 +00:00
Takashi Kokubun
419d2fc14d
[ruby/erb] Optimize the no-escape case with strpbrk
...
(https://github.com/ruby/erb/pull/29 )
Typically, strpbrk(3) is optimized pretty well with SIMD instructions.
Just using it makes this as fast as a SIMD-based implementation for the
no-escape case.
Not utilizing this for escaped cases because memory allocation would be
a more significant bottleneck for many strings anyway. Also, there'll be
some overhead in calling a C function (strpbrk) many times because we're
not using SIMD instructions directly. So using strpbrk all the time
might not necessarily be faster.
2022-11-05 06:58:48 +00:00
Takashi Kokubun
f276d5a7fe
Improve HTML escape benchmarks
2022-11-04 23:54:25 -07:00
Maxime Chevalier-Boisvert
dd4ae9a475
Auto-enable YJIT build when rustc >= 1.58.0 present ( #6662 )
...
* Auto-enable YJIT build when rustc >= 1.58.0 present
* Try different incantation to have rustc output to stdout only
* Add comment, remove whitespace
* Try to detect if we are on a platform on which YJIT is supported
2022-11-04 17:02:04 -04:00
Peter Zhu
6d83590157
Don't report changed ENV caused by Bundler
...
Bundler's backups changes environment variables starting with
BUNDLER_ORIG_. This causes a lot of noise in tests as the leakchecker
reports them as changed.
2022-11-04 15:36:30 -04:00
Stan Lo
367c072ac6
[ruby/irb] Silent the noise created when building Context in tests
...
https://github.com/ruby/irb/commit/27e4274b3c
2022-11-04 18:29:54 +00:00
Takashi Kokubun
b169d78c88
[ruby/erb] Avoid using prepend + super for fallback
...
(https://github.com/ruby/erb/pull/28 )
`prepend` is prioritized more than ActiveSupport's monkey-patch, but the
monkey-patch needs to work.
https://github.com/ruby/erb/commit/611de5a865
2022-11-04 16:46:29 +00:00
Nobuyoshi Nakada
13395757fa
Update dependencies for bc28acc347
2022-11-05 00:48:42 +09:00
Jemma Issroff
6e4b97f1da
Increment max_iv_count on class in gc marking, not gc freeing
...
We were previously incrementing the max_iv_count on a class in gc
freeing. By the time we free an object though, we're not guaranteed its
class is still valid. Instead, we can do this when marking and we're
guaranteed the object still knows its class.
2022-11-04 11:41:10 -04:00
Nobuyoshi Nakada
6b90910973
Update dependencies
2022-11-05 00:18:02 +09:00
Peter Zhu
93f364d65e
Use RTEST to to check return value
...
rb_obj_is_kind_of returns a Ruby Qtrue or Qfalse. We should use RTEST
rather than assuming that Qfalse is 0.
2022-11-04 09:02:58 -04:00
Alexander Momchilov
76a6c5d6d1
Remove unnecessary branch in `UnboundMethod#bind`
...
Co-authored-by: Michael Herold <michael.herold@shopify.com>
2022-11-04 08:57:01 -04:00
Nobuyoshi Nakada
b83074dac7
[ruby/irb] Suppress "switching inspect mode" messages
...
https://github.com/ruby/irb/commit/ee068d039b
2022-11-04 11:43:21 +00:00
Nobuyoshi Nakada
ed9d761217
mkconfig.rb: take CPU name from arch flag
2022-11-04 18:19:30 +09:00
Nobuyoshi Nakada
cb18deee72
Substitute from the actual netinet6/in6.h
...
Xcode no longer links the system include files directory to `/usr`.
Extract the actual header file path from cpp output.
2022-11-04 17:38:28 +09:00
Nobuyoshi Nakada
7e3af23d1d
sync_default_gems.rb: fix a typo [ci skip]
2022-11-04 16:22:47 +09:00
Samuel Williams
2bb89b7f11
Lower priority of `POSIX_MADV_DONTNEED`. ( #6671 )
2022-11-04 20:13:48 +13:00
Takashi Kokubun
ccf32a5ca4
[ruby/erb] Do not allocate a new String if not needed
...
[Feature #19102 ]https://github.com/ruby/erb/commit/ecebf8075c
2022-11-04 07:07:24 +00:00
Takashi Kokubun
20efeaddbe
[ruby/erb] Optimize away to_s if it's already T_STRING
...
[Feature #19102 ]https://github.com/ruby/erb/commit/38c6e182fb
2022-11-04 07:07:24 +00:00
Takashi Kokubun
dc5d06e9b1
[ruby/erb] Copy CGI.escapeHTML to ERB::Util.html_escape
...
https://github.com/ruby/erb/commit/ac9b219fa9
2022-11-04 07:07:23 +00:00
Nobuyoshi Nakada
b6d7e98f25
sync_default_gems.rb: fix the position to insert the original URL
...
Since the regexp had expected an empty line before `Co-Authored-By:`
trailer lines, it failed to match when the body has the trailer only.
2022-11-04 15:43:29 +09:00
Nobuyoshi Nakada
570dee15a6
sync_default_gems.rb: accept log input from other than STDIN
2022-11-04 15:43:29 +09:00
Takashi Kokubun
1956fb9b78
Bump benchmark-driver version
...
https://github.com/benchmark-driver/benchmark-driver/pull/75 is useful
for quickly benchmarking a single method in CRuby.
2022-11-03 17:27:37 -07:00
Stan Lo
a923203811
[ruby/irb] Provide a base test class and let tests restore encodings
...
conveniently
(https://github.com/ruby/irb/pull/429 )
* Create a base TestIRB::TestCase class
* Save/restore encodings for tests that initializes InputMethod classes
Because `RelineInputMethod#initializes` calls `set_encoding`, which
changes stdio/out/err and Encoding's default encoding values, we need to
make sure any test that directly or indirectly (e.g. through Context)
initializes `RelineInputMethod` restores encodings.
`ReadlineInputMethod` also changes encodings but currently no tests
cover it.
* Remove unnecessary TestHelper module
Since we now have a base TestCase, without_rdoc can just live there.
https://github.com/ruby/irb/commit/c2874ec121
2022-11-03 22:13:11 +00:00
Takashi Kokubun
a13836e70d
[ruby/irb] Allow non-identifier aliases like Pry's @ and $
...
(https://github.com/ruby/irb/pull/426 )
* Allow non-identifier aliases
* Move the configuration to IRB.conf
* Avoid abusing method lookup for symbol aliases
* Add more alias tests
* A small optimization
* Assume non-nil Context
* Load IRB.conf earlier
https://github.com/ruby/irb/commit/e23db5132e
2022-11-03 22:09:55 +00:00
Peter Zhu
d24ac6d281
Update configure command in building_ruby.md
...
Readers didn't realize that you can use --prefix with
--disable-install-doc.
2022-11-03 16:58:39 -04:00
Yusuke Nakamura
5344618cb7
[DOC] Fix IO::Buffer#slice rdoc position
...
Before this change, rdoc shows empty in 'slice' method section
2022-11-03 14:40:17 -04:00
Takashi Kokubun
56884b64de
[ruby/irb] Require rubygems to run the test alone on ruby/ruby
...
`Gem` is not undefined on test-all
https://github.com/ruby/irb/commit/08ac803d61
2022-11-03 17:42:45 +00:00
Takashi Kokubun
01d7e15757
YJIT: Show side_exit count in stats as well ( #6666 )
2022-11-03 13:42:29 -04:00
Takashi Kokubun
ea77aa2fd0
YJIT: Make Code GC metrics available for non-stats builds ( #6665 )
2022-11-03 13:41:35 -04:00
Takashi Kokubun
611b5e7f40
[ruby/irb] Fix build_context for ruby/ruby CI
...
Co-Authored-By: Stan Lo <stan.lo@shopify.com>
https://github.com/ruby/irb/commit/d1fe234a9a
2022-11-03 17:35:15 +00:00