aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [rubygems/rubygems] Bump rb-sysdependabot[bot]2022-10-242-7/+7
| | | | | | | | | | | | | | | | | Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.31 to 0.9.34. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.31...v0.9.34) --- 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/1882ad876f
* Remove iv_index_tbl_entryJohn Hawthorn2022-10-243-16/+0
|
* [ruby/irb] Restore standard input/output encodings after input method tests Stan Lo2022-10-241-0/+12
|
* YJIT: Lazily enable YJIT after prelude (#6597)Takashi Kokubun2022-10-244-21/+29
| | | | | | | * YJIT: Lazily enable YJIT after prelude * Update dependencies * Use a bit field for opt->yjit
* [DOC] Revert previous merge (#6624)Burdette Lamar2022-10-241-260/+188
| | | Revert previous merge
* Split tests for `Array#shuffle` and `Array#sample`Nobuyoshi Nakada2022-10-241-1/+21
|
* [DOC] Add note about method names (#6620)Burdette Lamar2022-10-241-0/+13
|
* [ruby/irb] Add a test case to cover rdoc unintalled scenario st00122022-10-241-0/+31
|
* [ruby/irb] Move require out of repeated execution pathst00122022-10-241-6/+6
| | | | | | | | | | | | SHOW_DOC_DIALOG will be called repeatedly whenever the corresponding key is pressed, but we only need to require rdoc once. So ideally the require can be put outside of the proc. And because when rdoc is not available the entire proc will be nonfunctional, we can stop registering the SHOW_DOC_DIALOG if we failed to require rdoc. https://github.com/ruby/irb/commit/b1278b7320
* [ruby/irb] Add tests for RelineInputMethod st00122022-10-241-0/+58
|
* Strip trailing spaces [ci skip]Nobuyoshi Nakada2022-10-241-0/+1
|
* * remove trailing spaces. [ci skip]git2022-10-241-1/+1
|
* Update bundled gems list at 2022-10-24git2022-10-242-2/+2
|
* Refactor timeout-setting code to a functionYusuke Endoh2022-10-241-13/+12
|
* Refactor timeout-related code in re.c a littleYusuke Endoh2022-10-241-9/+9
|
* Fix error when commit hash is removed [ci skip]Nobuyoshi Nakada2022-10-241-1/+1
|
* Fix per-instance Regexp timeout (#6621)Yusuke Endoh2022-10-243-10/+74
| | | | | | | | | | Fix per-instance Regexp timeout This makes it follow what was decided in [Bug #19055]: * `Regexp.new(str, timeout: nil)` should respect the global timeout * `Regexp.new(str, timeout: huge_val)` should use the maximum value that can be represented in the internal representation * `Regexp.new(str, timeout: 0 or negative value)` should raise an error
* Set timestamp path for the target path to TARGET_SO_DIR_TIMESTAMPNobuyoshi Nakada2022-10-241-3/+6
|
* Make the timestamp path correspond to the bundled target pathNobuyoshi Nakada2022-10-241-2/+7
| | | | | | | So different timestamps for different paths will be used. Extentions paths in bundled gems contain `ruby_version`, which includes the ABI version, and the same timestamp file for different paths resulted in build failures when it changed.
* Adjust indents [ci skip]Nobuyoshi Nakada2022-10-241-37/+34
|
* Reuse RBOOL macro in rb_ivar_defined functionS-H-GAMELINKS2022-10-241-6/+1
|
* Update default gems list at c5f5403f6ed9e62f2a1002417e61c9 [ci skip]git2022-10-241-1/+1
|
* [ruby/net-http] Bump version to 0.3.0 Hiroshi SHIBATA2022-10-241-1/+1
|
* Skip `File.atime`/`File.mtime` tests randomly failing on TravisNobuyoshi Nakada2022-10-242-9/+11
| | | | | | Not only powerpc64le, also s390x and arm32 seem failing too. These failures are probably caused by filesystem settings on Travis, but unrelated to CPUs.
* Adjust indents [ci skip]Nobuyoshi Nakada2022-10-241-13/+13
|
* Fix argument & Remove enumS-H-GAMELINKS2022-10-231-9/+3
|
* Introduce rb_memsearch_with_char_size functionS-H-GAMELINKS2022-10-231-10/+14
|
* Reduce type check of arguments at Complex creationNobuyoshi Nakada2022-10-232-22/+48
|
* Introduce `hash_iter_status_check` functionS.H2022-10-231-18/+15
|
* [Bug #19004] `Complex.polar` handles complex singular `abs` argumentStephen Ierodiaconou2022-10-232-7/+22
| | | | | | | | | | | | | | | | `Complex.polar` accepts Complex values as arguments for the polar form as long as the value of the complex has no imaginary part (ie it is 'real'). In `f_complex_polar` this is handled by extracting the real part of the arguments. However in the case `polar` is called with only a single argument, the absolute value (abs), then the Complex is created without applying a check on the type of abs, meaning it is possible to create a Complex where the real part is itself an instance of a Complex. This change removes the short circuit for the single argument case meaning the real part extraction is performed correctly (by f_complex_polar). Also adds an example to `spec/ruby/core/complex/polar_spec.rb` to check that the real part of a complex argument is correctly extracted and used in the resulting Complex real and imaginary parts.
* Update Complex.polar with Complex testsNobuyoshi Nakada2022-10-231-4/+10
|
* Improved formatting of `hash_foreach_iter` functions. (#6615)Samuel Williams2022-10-221-7/+10
|
* [rubygems/rubygems] Allow upcoming JRuby to pass keywords for Kernel#warnThomas E. Enebo2022-10-222-2/+2
| | | | | | | | | jruby-head (which will be JRuby 9.4.0.0) can now properly process the keywords to Kernel#warn. I cannot think of any capability based test for this so I constrained it using a version guard. Only JRuby will ever hit the version guard. https://github.com/rubygems/rubygems/commit/cd468c7e0f
* Add [Feature #19013] to NEWS [ci skip]yui-knk2022-10-221-0/+3
|
* Rename `iv_count` on shapes to `next_iv_index`Jemma Issroff2022-10-217-25/+25
| | | | | | `iv_count` is a misleading name because when IVs are unset, the new shape doesn't decrement this value. `next_iv_count` is an accurate, and more descriptive name.
* Remove unused class serialJemma Issroff2022-10-217-57/+3
| | | | | | | | Before object shapes, we were using class serial to invalidate inline caches. Now that we use shape_id for inline cache keys, the class serial is unnecessary. Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
* YJIT: Fix page rounding for icache bustingAlan Wu2022-10-211-5/+7
| | | | | | | | | | | | | | Previously, we found the current page by rounding the current pointer to the closest smaller page size. This is incorrect because pages are relative to the start of the address we reserve. For example, if the starting address is 12KiB modulo the 16KiB page size, once we have more than 4KiB of code, calculating with the address would incorrectly give us page 1 when we're actually still on page 0. Previously, I can reproduce crashes with: make btest RUN_OPTS=--yjit-code-page-size=32 on ARM64 macOS, where system page sizes are 16KiB.
* YJIT: Read rb_num_t as usize earlyAlan Wu2022-10-211-25/+22
| | | | | | | | | This patch makes sure that we're not accidentally reading rb_num_t instruction arguments as VALUE and accidentally baking them into code and marking them. Some of these are simply moving the cast earlier, but some of these avoid potential problems for flag and ID arguments. Follow-up for 39f7eddec4c55711d56f05b085992a83bf23159e.
* [DOC] Add link targets (#6602)Burdette Lamar2022-10-211-188/+260
|
* In init_copy, set shape after copying ivarsJemma Issroff2022-10-211-3/+3
| | | | | | | GC uses shapes to determine IV buffer width. Since allocation can trigger GC, we need to ensure we only set the shape once we've fully allocated new memory for the IV buffer, otherwise the GC can end up trying to mark invalid memory.
* [ruby/stringio] [DOC] Enhanced RDoc for StringIOBurdette Lamar2022-10-211-20/+24
| | | | | | | | | | | | | (https://github.com/ruby/stringio/pull/36) Treats: - #each_codepoint - #gets - #readline (shows up in doc for module IO::generic_readable, not class StringIO) - #each_line https://github.com/ruby/stringio/commit/659aca7fe5
* [ruby/net-http] Revert "Replace Timeout.timeout in Net:HTTP#connect"Hiroshi SHIBATA2022-10-211-7/+8
| | | | | | This reverts commit https://github.com/ruby/net-http/commit/753cae3bbccc. https://github.com/ruby/net-http/commit/98caa38204
* Range#size returns nil for (.."a") and (nil..)Yusuke Endoh2022-10-213-6/+28
| | | | Fixes [Bug #18983]
* Check writebarrier arguments only when RGENGC_CHECK_MODE [ci skip]Nobuyoshi Nakada2022-10-211-2/+4
| | | | | | The commit 575ae50d16a03ed23357ec4ea0dbf7167fc26c8c was for debugging the failure triggered by f55212bce939f736559709a8cd16c409772389c8, and it was fixed at the commit 39f7eddec4c55711d56f05b085992a83bf23159e.
* YJIT: Fix gen_expandarray treating argument as VALUEAlan Wu2022-10-201-11/+12
| | | | | | | | | | | | | | | | | | | The expandarray instruction interpreters its arguments as rb_num_t. YJIT was treating the num argument as a VALUE previously and when it has a certain bit pattern, it can look like a GC pointer. The argument is not a pointer, so YJIT crashed when trying to mark those pointers. This bug existed previously, but our test suite didn't expose it until f55212bce939f736559709a8cd16c409772389c8. TestArgf#test_to_io has a line like: a1, a2, a3, a4, a5, a6, a7, a8 = array Which maps to an expandarray with an argument of 8. Qnil happened to be defined as 8, which masked the issue. Fix it by not using the argument as a VALUE.
* YJIT: remove some stale comments [ci skip]Alan Wu2022-10-201-8/+0
|
* Check writebarrier argumentsNobuyoshi Nakada2022-10-201-2/+2
|
* YJIT: incorporate ruby_special_constsNobuyoshi Nakada2022-10-204-21/+28
|
* Unmark Internal IV test as pendingJemma Issroff2022-10-202-5/+1
| | | | Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
* Add Class#attached_objectUfuk Kayserilioglu2022-10-206-0/+112
| | | | | | | Implements [Feature #12084] Returns the object for which the receiver is the singleton class, or raises TypeError if the receiver is not a singleton class.