summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Disable SEH workaround on __MINGW64__ only. (#6957)Samuel Williams2022-12-191-1/+1
|
* [rubygems/rubygems] Add bundle lock --update --bundlerAlyssa Ross2022-12-183-2/+27
| | | | | | | | | | | | bundle lock --update can do everything that bundle update can do, but it doesn't actually install gems. This is especially useful for generating a lockfile on a machine that doesn't have the libraries available to be able to build native extensions. But, there was no parallel for bundle update --bundler. So let's add one. https://github.com/rubygems/rubygems/commit/7fc00bd2a5
* [ruby/net-http] Adding links to referencesBurdetteLamar2022-12-181-10/+55
| | | | https://github.com/ruby/net-http/commit/6dfe6f411a
* Suppress cross tool warning for pkg-config [ci skip]Nobuyoshi Nakada2022-12-181-0/+2
| | | | It is used from mkmf.rb on target environments.
* configure.ac: add miniruby to PREP when cross-compiling to darwinMike Dalessio2022-12-181-0/+4
| | | | | | | | miniruby is used to resolve symbols in ext bundles https://bugs.ruby-lang.org/issues/19239 Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>
* [ruby/date] Adjust format [ci skip]Nobuyoshi Nakada2022-12-181-4/+8
| | | | https://github.com/ruby/date/commit/71c35b4054
* [ruby/date] Extract `head_match_p` and abbreviated name length constantsNobuyoshi Nakada2022-12-181-4/+13
| | | | https://github.com/ruby/date/commit/3f666fa882
* [ruby/date] Consider the length of string to parseNobuyoshi Nakada2022-12-181-17/+16
| | | | https://github.com/ruby/date/commit/3bfed83ce7
* [ruby/date] Remove `extz_pats` tableNobuyoshi Nakada2022-12-181-12/+5
| | | | https://github.com/ruby/date/commit/945e26e243
* [ruby/date] Remove `merid_names` tableNobuyoshi Nakada2022-12-181-15/+11
| | | | https://github.com/ruby/date/commit/7fe2bd5f94
* [ruby/date] Match abbreviated day and month names with head of full namesNobuyoshi Nakada2022-12-181-10/+10
| | | | https://github.com/ruby/date/commit/a45f8f03c9
* Use FL_TEST_RAW in rb_hash_default_valueJohn Hawthorn2022-12-171-1/+3
| | | | | | | | | We should always have a T_HASH here, so we can use FL_TEST_RAW to avoid checking whether we may have an immediate value. I expect this to be a very small performance improvement (perf stat ./miniruby benchmark/hash_aref_miss.rb shows a ~1% improvement). It also removes 9 instructions from rb_hash_default_value on x86_64.
* Use a BOP for Hash#defaultJohn Hawthorn2022-12-175-22/+42
| | | | | | | | | | | | | | | | | | | | On a hash miss we need to call default if it is redefined in order to return the default value to be used. Previously we checked this with rb_method_basic_definition_p, which avoids the method call but requires a method lookup. This commit replaces the previous check with BASIC_OP_UNREDEFINED_P and a new BOP_DEFAULT. We still need to fall back to rb_method_basic_definition_p when called on a subclasss of hash. | |compare-ruby|built-ruby| |:---------------|-----------:|---------:| |hash_aref_miss | 2.692| 3.531| | | -| 1.31x| Co-authored-by: Daniel Colson <danieljamescolson@gmail.com> Co-authored-by: "Ian C. Anderson" <ian@iancanderson.com> Co-authored-by: Jack McCracken <me@jackmc.xyz>
* MJIT: Refactor BitField dereference byte and bitmask (#6955)Mau Magnaguagno2022-12-171-2/+2
| | | | Prefer Array#unpack1 and Enumerable#sum. I think the bitmask formula ``2 ** @width - 1`` would be clearer, but not faster for such small integers.
* Hard crash when allocating in GC when RUBY_DEBUGPeter Zhu2022-12-171-3/+3
| | | | | Not all builds have RGENGC_CHECK_MODE set, so it should also crash when RUBY_DEBUG is set.
* Move check for GC to xmalloc and xcallocPeter Zhu2022-12-171-7/+14
| | | | Moves the check earlier to before we actually perform the allocation.
* Add tests for `Queue#pop` with fiber scheduler. (#6953)Samuel Williams2022-12-171-0/+42
|
* Clean up Ruby Shape APIJemma Issroff2022-12-162-102/+29
| | | | | | | Make printing shapes better, use a struct instead of specific methods for each field on a shape. Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
* Don't allow allocating memory during GCPeter Zhu2022-12-161-12/+48
| | | | | | | | | Allocating memory (xmalloc and xrealloc) during GC could cause GC to trigger, which would crash with `[BUG] during_gc != 0`. This is an intermittent bug which could be hard to debug. This commit changes it so that any memory allocation during GC will emit a warning. When debug flags are enabled it will also cause a crash.
* [Feature #18033] [DOC] Add NEWSNobuyoshi Nakada2022-12-161-0/+6
|
* [Feature #18033] Parse more strictly conformant with ISO-8601Nobuyoshi Nakada2022-12-162-8/+17
| | | | | * 4-digits or more is required as year * Minutes and seconds parts are not ommittable
* [Feature #18033] Make more conformant with C standardNobuyoshi Nakada2022-12-161-2/+3
|
* [Feature #18033] Add `precision:` optionNobuyoshi Nakada2022-12-163-27/+68
| | | | | Which limits the precision of subsecond. Defaulted to 9, that means nanosecond.
* [Feature #18033] More strict checksNobuyoshi Nakada2022-12-162-9/+63
|
* [Feature #18033] Name a magic numberNobuyoshi Nakada2022-12-161-4/+8
|
* [Feature #18033] Make Time.new parse time stringsNobuyoshi Nakada2022-12-164-3/+146
| | | | | `Time.new` now parses strings such as the result of `Time#inspect` and restricted ISO-8601 formats.
* Unconditionally warn "unknown pack/unpack directive"Yusuke Endoh2022-12-162-12/+4
| | | | [Bug #19150]
* Update NEWS.mdYusuke Endoh2022-12-162-1/+15
| | | | Regexp optimization and Wasm support are added.
* Removed temporary workaround for syntax_suggest tagsHiroshi SHIBATA2022-12-161-5/+0
|
* Update default gems list at 11f3bef260258c4c8a05ea35ab3bf8 [ci skip]git2022-12-161-1/+1
|
* [ruby/date] Bump version to 3.3.2Hiroshi SHIBATA2022-12-161-1/+1
| | | | https://github.com/ruby/date/commit/7afd9d4615
* Update default gems list at 2cd22f9abd2e759a94452b54408a68 [ci skip]git2022-12-161-1/+1
|
* [ruby/logger] Bump version to 1.5.3Hiroshi SHIBATA2022-12-161-1/+1
| | | | https://github.com/ruby/logger/commit/4e8d9e27fd
* Followed up ad18d1297ed82aa9c38375532b0b709131cf1ae7 with tool/update-deps --fixHiroshi SHIBATA2022-12-161-0/+2
|
* Reject keyword arguments given to Enumerator::Product.newAkinori MUSHA2022-12-162-10/+31
| | | | The use of keyword arguments should be reserved for future extension.
* Update default gems list at d95ee114621c3cd34b4a34233888bb [ci skip]git2022-12-161-1/+1
|
* [ruby/io-console] Bump version to 0.6.0Hiroshi SHIBATA2022-12-161-1/+1
| | | | https://github.com/ruby/io-console/commit/441528e3eb
* Update default gems list at 7e26ff7dc008ce14e34b43b8ee04a7 [ci skip]git2022-12-161-1/+1
|
* [ruby/io-wait] Bump version to 0.3.0Hiroshi SHIBATA2022-12-161-1/+1
| | | | https://github.com/ruby/io-wait/commit/940ba319d3
* surpress warningKoichi Sasada2022-12-161-1/+1
| | | | now `enc_table->list` is not a pointer.
* [ruby/irb] Prefer to use File.open instead of Kernel.openHiroshi SHIBATA2022-12-161-2/+2
| | | | https://github.com/ruby/irb/commit/ed9e435a6b
* fixed encoding tableKoichi Sasada2022-12-164-115/+61
| | | | | This reduces global lock acquiring for reading. https://bugs.ruby-lang.org/issues/18949
* Mentioned https://bugs.ruby-lang.org/issues/17767 on NEWS.mdHiroshi SHIBATA2022-12-161-0/+3
|
* Add NEWS entries about CGI and ERB [ci skip]Takashi Kokubun2022-12-151-0/+12
|
* YJIT: Fix `obj.send(:call)`Alan Wu2022-12-152-1/+12
| | | | | | | | | All the method call types need to handle argument shifting in case they're called by `.send`, and we weren't handling that in `OPTIMIZED_METHOD_TYPE_CALL`. Lack of shifting caused the stack size assertion in gen_leave() to fail. Discovered by Rails CI: https://buildkite.com/rails/rails/builds/91705#018516c4-f8f8-469e-bc2d-ddeb25ca8317/1920-2067 Diagnosed with help from `@eileencodes` and `@k0kubun`.
* Indicate if a shape is too_complex in ObjectSpace#dumpJemma Issroff2022-12-152-4/+34
|
* Move definition of SIZE_POOL_COUNT back to gc.hPeter Zhu2022-12-154-11/+18
| | | | | | | | SIZE_POOL_COUNT is a GC macro, it should belong in gc.h and not shape.h. SIZE_POOL_COUNT doesn't depend on shape.h so we can have shape.h depend on gc.h. Co-Authored-By: Matt Valentine-House <matt@eightbitraptor.com>
* [ruby/net-http] Enhanced RDoc for Net::HTTPBurdetteLamar2022-12-151-2/+17
| | | | https://github.com/ruby/net-http/commit/da626e4e42
* Improve Struct NEWS [ci skip]Takashi Kokubun2022-12-151-4/+1
| | | | I meant to commit diff, but it was left uncommitted locally.
* Refactor to only attempt to move movable objectsPeter Zhu2022-12-151-30/+33
| | | | | | Moves check for gc_is_moveable_obj from try_move to gc_compact_plane. Co-Authored-By: Matt Valentine-House <matt@eightbitraptor.com>