aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary branch in `UnboundMethod#bind`Alexander Momchilov2022-11-041-2/+1
| | | | Co-authored-by: Michael Herold <michael.herold@shopify.com>
* [ruby/irb] Suppress "switching inspect mode" messagesNobuyoshi Nakada2022-11-041-0/+2
| | | | https://github.com/ruby/irb/commit/ee068d039b
* mkconfig.rb: take CPU name from arch flagNobuyoshi Nakada2022-11-041-0/+8
|
* Substitute from the actual netinet6/in6.hNobuyoshi Nakada2022-11-041-5/+13
| | | | | Xcode no longer links the system include files directory to `/usr`. Extract the actual header file path from cpp output.
* sync_default_gems.rb: fix a typo [ci skip]Nobuyoshi Nakada2022-11-041-1/+1
|
* Lower priority of `POSIX_MADV_DONTNEED`. (#6671)Samuel Williams2022-11-041-3/+18
|
* [ruby/erb] Do not allocate a new String if not neededTakashi Kokubun2022-11-041-4/+4
| | | | | [Feature #19102]https://github.com/ruby/erb/commit/ecebf8075c
* [ruby/erb] Optimize away to_s if it's already T_STRINGTakashi Kokubun2022-11-041-9/+2
| | | | | [Feature #19102]https://github.com/ruby/erb/commit/38c6e182fb
* [ruby/erb] Copy CGI.escapeHTML to ERB::Util.html_escapeTakashi Kokubun2022-11-045-2/+126
| | | | https://github.com/ruby/erb/commit/ac9b219fa9
* sync_default_gems.rb: fix the position to insert the original URLNobuyoshi Nakada2022-11-041-2/+3
| | | | | 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.
* sync_default_gems.rb: accept log input from other than STDINNobuyoshi Nakada2022-11-041-4/+6
|
* Bump benchmark-driver versionTakashi Kokubun2022-11-031-1/+1
| | | | | https://github.com/benchmark-driver/benchmark-driver/pull/75 is useful for quickly benchmarking a single method in CRuby.
* [ruby/irb] Provide a base test class and let tests restore encodingsStan Lo2022-11-0313-53/+63
| | | | | | | | | | | | | | | | | | | | | | | 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
* [ruby/irb] Allow non-identifier aliases like Pry's @ and $Takashi Kokubun2022-11-035-0/+87
| | | | | | | | | | | | | | | | | | | | (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
* Update configure command in building_ruby.mdPeter Zhu2022-11-031-1/+1
| | | | | Readers didn't realize that you can use --prefix with --disable-install-doc.
* [DOC] Fix IO::Buffer#slice rdoc positionYusuke Nakamura2022-11-031-21/+21
| | | | Before this change, rdoc shows empty in 'slice' method section
* [ruby/irb] Require rubygems to run the test alone on ruby/rubyTakashi Kokubun2022-11-031-0/+1
| | | | | | `Gem` is not undefined on test-all https://github.com/ruby/irb/commit/08ac803d61
* YJIT: Show side_exit count in stats as well (#6666)Takashi Kokubun2022-11-031-0/+1
|
* YJIT: Make Code GC metrics available for non-stats builds (#6665)Takashi Kokubun2022-11-035-8/+20
|
* [ruby/irb] Fix build_context for ruby/ruby CITakashi Kokubun2022-11-031-1/+2
| | | | | | Co-Authored-By: Stan Lo <stan.lo@shopify.com> https://github.com/ruby/irb/commit/d1fe234a9a
* YJIT: Fix a wrong type reference (#6661)Takashi Kokubun2022-11-032-11/+1
| | | | | * YJIT: Fix a wrong type reference * YJIT: Just remove CapturedSelfOpnd for now
* [ruby/irb] Require the entire irb lib in RubyLex testStan Lo2022-11-031-1/+1
| | | | | | | | | | (https://github.com/ruby/irb/pull/428) RubyLex is not designed to be used alone. It's usually used with an IRB context, which requires workspace. So its tests should have access to those components too. https://github.com/ruby/irb/commit/608f261da4
* [ruby/irb] Refactor RubyLex and its testsStan Lo2022-11-032-9/+24
| | | | | | | | | | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/427) * Make sure `RubyLex#set_input`'s context is always present in tests In real-world scenarios, the context should always be non-nil: https://github.com/ruby/irb/blob/master/lib/irb.rb#L489 So we should make sure our test setup reflects that. * Make context a required keyword Since in practice, `set_input`'s context should always be non-nil, its parameters should reflect that. And since `RubyLex#check_state` is only called by `#lex` and `#set_input`, both of which now always require context, we can assume its context should be non-nil too. https://github.com/ruby/irb/commit/1aeeb86203
* YJIT: Stop incrementing write_pos if cb.has_dropped_bytes (#6664)Takashi Kokubun2022-11-032-7/+7
| | | | | Co-Authored-By: Alan Wu <alansi.xingwu@shopify.com> Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
* Make str_alloc_heap return a STR_NOEMBED stringPeter Zhu2022-11-031-29/+24
| | | | | This commit refactors str_alloc_heap to return a string with the STR_NOEMBED flag set.
* [ruby/erb] Skip a test for JRubyTakashi Kokubun2022-11-031-0/+3
| | | | https://github.com/ruby/erb/commit/48a75665ab
* [ruby/erb] Skip tests for trufflerubyTakashi Kokubun2022-11-032-0/+5
| | | | https://github.com/ruby/erb/commit/65a7c70a00
* [ruby/erb] Fix CI for JRubyTakashi Kokubun2022-11-031-1/+3
| | | | https://github.com/ruby/erb/commit/df642335b7
* Run only daily schedule because CodeQL provides a lot of false-positive ↵Hiroshi SHIBATA2022-11-031-17/+17
| | | | results for Ruby code
* Fix crash in test runner on timeoutPeter Zhu2022-11-021-1/+4
| | | | | | | | | | | When a test worker hangs and timeouts, the test runner crashes with the following stack trace: ruby/tool/lib/test/unit.rb:1747:in `puke': undefined method `backtrace' for Timeout::Error:Class (NoMethodError) from ruby/tool/lib/test/unit.rb:790:in `block in _run_parallel' from ruby/tool/lib/test/unit.rb:788:in `each' This commit adds handling for Timeout::Error and outputs a message.
* YJIT: Support invokeblock (#6640)Takashi Kokubun2022-11-0210-30/+198
| | | | | | | | | * YJIT: Support invokeblock * Update yjit/src/backend/arm64/mod.rs * Update yjit/src/codegen.rs Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
* YJIT: don't show a full crash report if mmap is only out of memory (#6659)Noah Gibbs2022-11-021-0/+4
|
* YJIT: Avoid accumulating freed pages in the payload (#6657)Takashi Kokubun2022-11-022-8/+33
| | | | | | | Co-Authored-By: Alan Wu <alansi.xingwu@shopify.com> Co-Authored-By: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> Co-authored-by: Alan Wu <alansi.xingwu@shopify.com> Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>
* Use shared flags of the typePeter Zhu2022-11-022-2/+3
| | | | | | The ELTS_SHARED flag is generic, so we should prefer to use the flags specific of the type (STR_SHARED for strings and RARRAY_SHARED_FLAG for arrays).
* [rubygems/rubygems] Bump rb-sys in ↵dependabot[bot]2022-11-022-5/+5
| | | | | | | | | | | | | | | | | | | /test/rubygems/test_gem_ext_cargo_builder/custom_name Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.34 to 0.9.35. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.34...v0.9.35) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> https://github.com/rubygems/rubygems/commit/19feb314cb
* Update Regexp.timeout doc (#6658)Sampat Badhe2022-11-021-2/+2
| | | | | * Correct Regexp.timeout doc, Timeout.timeout= => Regexp.timeout= * add link Regexp Timeout section
* file2lastrev.rb: changed revision may be `nil` [ci skip]Nobuyoshi Nakada2022-11-021-2/+4
| | | | | | When `--suppress_not_found` option is given, no revision information is available. And remove extraneous newline, when result is empty or ends with a newline.
* file2lastrev.rb: try to overwrite the found revision.h as beforeNobuyoshi Nakada2022-11-022-6/+9
|
* file2lastrev.rb: separate options for `Output` and `VPath`Nobuyoshi Nakada2022-11-023-1/+8
| | | | | So the `--srcdir` option in this file can override the same option in `VPath`.
* Fix infinite loop when out-of-place buildNobuyoshi Nakada2022-11-021-1/+1
|
* Manage the timestamp for revision.hNobuyoshi Nakada2022-11-021-7/+2
|
* Ivar copy needs to happen _before_ setting the shapeAaron Patterson2022-11-012-6/+6
| | | | | | | | When we copy instance variables, it is possible for the GC to be kicked off. The GC looks at the shape to determine what slots to mark inside the object. If the shape is set too soon, the GC could think that there are more instance variables on the object than there actually are at that moment.
* YJIT: Visualize live ranges on register spill (#6651)Takashi Kokubun2022-11-011-6/+37
|
* YJIT: Add an assert to help with Context changesAlan Wu2022-11-011-1/+6
| | | | | | | While experimenting I found that it's easy to change Context and forget to also change the copying operation in limit_block_versions(). Add an assert to make sure we substitute a compatible generic context when limiting the number of versions.
* YJIT: Delete redundant ways to make ContextAlan Wu2022-11-012-21/+6
| | | | | Context::new() is the same as Context::default() and Context::new_with_stack_size() was only used in tests.
* file2lastrev.rb: use output.rb for the optionsNobuyoshi Nakada2022-11-011-2/+5
|
* file2lastrev.rb: rename output as formatNobuyoshi Nakada2022-11-011-15/+15
| | | | | | Also: - format -> time_format - output -> formatter
* output.rb: extract from generic_erb.rbNobuyoshi Nakada2022-11-012-33/+55
| | | | | | | - writing to a file or stdout - touching timestamp files - overwriting only if changed - colorizing
* colorize.rb: support for NO_COLORNobuyoshi Nakada2022-11-011-1/+1
|
* vpath.rb: tweak --vpath option messageNobuyoshi Nakada2022-11-011-1/+1
|