summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* POSIX timer cannot be shared in forked process [Bug #17941]Nobuyoshi Nakada2021-06-091-0/+1
|
* Add multi-heap support to gc_marks_wb_unprotected_objectsPeter Zhu2021-06-081-3/+3
|
* * 2021-06-09 [ci skip]git2021-06-091-1/+1
|
* Make ENV.clone warn and ENV.dup raiseJeremy Evans2021-06-082-0/+103
| | | | | | | | | | | | | | ENV.dup returned a plain Object, since all of ENV's behavior is defined in ENV's singleton class. So using dup makes no sense. ENV.clone works and is used in some gems, but it doesn't do what the user expects, since modifying ENV.clone also modifies ENV. Add a deprecation warning pointing the user to use ENV.to_h instead. This also undefines some private initialize* methods in ENV, since they are not needed. Fixes [Bug #17767]
* [ruby/psych] Fix the test that does not work with libyaml-0.1.7Yusuke Endoh2021-06-081-1/+1
| | | | https://github.com/ruby/psych/commit/542cf9754f
* * 2021-06-08 [ci skip]git2021-06-081-1/+1
|
* Don't create objects during GCAaron Patterson2021-06-071-1/+1
| | | | | | If we crash during GC, allocating new objects in the segv handler can cause an infinite loop. This commit is to avoid creating new objects in the crash handler
* [DOC] fix metacharacter markups [ci skip]Nobuyoshi Nakada2021-06-071-4/+4
|
* timev.rb: moved class rdoc from time.cNobuyoshi Nakada2021-06-072-211/+209
|
* dir.rb: moved class rdoc from dir.cNobuyoshi Nakada2021-06-072-79/+76
|
* Do not use YAML module in tests of PsychHiroshi SHIBATA2021-06-071-8/+8
|
* Use assert_raise instead of assert_raisesHiroshi SHIBATA2021-06-071-4/+4
|
* [ruby/psych] Bump version to 4.0.1Hiroshi SHIBATA2021-06-071-1/+1
| | | | https://github.com/ruby/psych/commit/4049939006
* [ruby/psych] Implement YAML.safe_dump to make safe_load more usable.Jean Boussier2021-06-075-5/+182
| | | | | | | | | | | In case where Psych is used as a two way serializers, e.g. to serialize some cache or config, it is preferable to have the same restrictions on both load and dump. Otherwise you might dump and persist some objects payloads that you later won't be able to read. https://github.com/ruby/psych/commit/441958396f
* [ruby/psych] Make YAML.load_file use YAML.load instead of safe_loadYusuke Endoh2021-06-071-2/+11
| | | | | | | | | | YAML.load and YAML.safe_load are different a little; the former allows Symbol by default but the latter doesn't. So YAML.load_file and YAML.safe_load_file should reflect the difference. Fixes #490 https://github.com/ruby/psych/commit/f8a5e512a1
* Get rid of updating Unicode filesNobuyoshi Nakada2021-06-072-6/+2
| | | | Some certificates on Unicode.org have expired.
* Skip make update-unicode for BASERUBY CIYusuke Endoh2021-06-071-1/+0
| | | | | | | | | | Unfortunately it often fails depending on the status of www.unicode.org. https://github.com/mame/ruby/runs/2761346164?check_suite_focus=true ``` ./tool/downloader.rb:248:in `rescue in download': failed to download 12.1.0/ucd/UnicodeData.txt (RuntimeError) OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed: https://www.unicode.org/Public/12.1.0/ucd/UnicodeData.txt ```
* * 2021-06-07 [ci skip]git2021-06-071-1/+1
|
* Fix TypoUtkarsh Mathur2021-06-071-1/+1
|
* ast.rb: reduce nestingNobuyoshi Nakada2021-06-061-117/+114
|
* * 2021-06-06 [ci skip]git2021-06-061-1/+1
|
* prelude.c.tmpl: strip comment-only or empty lines at the beginningNobuyoshi Nakada2021-06-061-8/+19
|
* Improve perfomance for Integer#size method [Feature #17135] (#3476)S.H2021-06-045-21/+26
| | | | | | | | | * Improve perfomance for Integer#size method [Feature #17135] * re-run ci * Let MJIT frame skip work for Integer#size Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
* * 2021-06-05 [ci skip]git2021-06-051-1/+1
|
* Update bundled_gemsKazuhiro NISHIYAMA2021-06-051-1/+1
|
* lldb_cruby.py: push non-flonum float to history [ci skip]Nobuyoshi Nakada2021-06-041-3/+1
|
* lldb_cruby.py: fix non-flonum float inspection [ci skip]Nobuyoshi Nakada2021-06-041-1/+1
|
* * 2021-06-04 [ci skip]git2021-06-041-1/+1
|
* Support an arbitrary number of header bits (< BITS_BITLENGTH)Aaron Patterson2021-06-031-243/+312
| | | | | | | | | NUM_IN_PAGE(page->start) will sometimes return a 0 or a 1 depending on how the alignment of the 40 byte slots work out. This commit uses the NUM_IN_PAGE function to shift the bitmap down on the first bitmap plane. Iterating on the first bitmap plane is "special", but this commit allows us to align object addresses on something besides 40 bytes, and also eliminates the need to fill guard bits.
* Suppress clobbered warnings on Travis-CI ppc64le-linuxNobuyoshi Nakada2021-06-032-3/+4
|
* Expose `rb_fiber_transfer` and `rb_fiber_transfer_kw`.Samuel Williams2021-06-032-7/+12
|
* Do not doubly hold an MJIT lockTakashi Kokubun2021-06-022-11/+16
| | | | | | | | | This is a follow-up of 86c262541ad07528842d76dab4b9b34bd888d5f4. CRITICAL_SECTION_START/FINISH are not needed when it's called from an MJIT worker. Also, ZALLOC needs to be calloc because ZALLOC may trigger GC, which an MJIT worker must not do.
* Warn more duplicate literal hash keysNobuyoshi Nakada2021-06-035-3/+10
| | | | | Following non-special_const literals: * T_REGEXP
* Warn more duplicate literal hash keysNobuyoshi Nakada2021-06-034-9/+47
| | | | | | | | Following non-special_const literals: * T_BIGNUM * T_FLOAT (non-flonum) * T_RATIONAL * T_COMPLEX
* Assertions for duplicate literal hash key warningsNobuyoshi Nakada2021-06-031-2/+15
|
* Note about 07c05b6fe931337e928a89ac5ebf654862dc0ecaTakashi Kokubun2021-06-021-0/+3
|
* Fix a race condition around mjit_recompileTakashi Kokubun2021-06-022-8/+17
| | | | | | | | | This fixes SEGVs like https://github.com/ruby/ruby/runs/2715166621?check_suite_focus=true. When mjit_recompile is called when mjit_compile is compiling the exact same iseq (and after it called mjit_capture_cc_entries), iseq->body->jit_unit is re-created and its cc_entries becomes NULL. Then, when it tries to lookup cc_entries through iseq->body->jit_unit, it fails.
* Do not expect ec on rb_vm_bugreportTakashi Kokubun2021-06-021-1/+1
| | | | | because a SEGV might happen on an MJIT worker. As you can clearly see from `if (vm && ec) {`, ec is not guaranteed to exist here.
* [rubygems/rubygems] Rename test/rubygems/test_{case,utilities}.rb to avoid ↵Yusuke Endoh2021-06-03128-128/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | "test_" prefix This changes "test/rubygems/test_case.rb" to "test/rubygems/helper.rb", and "test/rubygems/test_utilities.rb" to "test/rubygems/utilities.rb". The two files are a helper for tests, not test files. However, a file starting with "test_" prefix is handled as a test file directly loaded by test-unit because Rakefile specifies: ``` t.test_files = FileList['test/**/test_*.rb'] ``` Directly loading test/rubygems/test_utilities.rb caused "uninitialized constant Gem::TestCase". This issue was fixed by 59c682097197fee4052b47e4b4ab86562f3eaa9b, but the fix caused a "circular require" warning because test_utilities.rb and test_case.rb are now requiring each other. Anyway, adding "test_" prefix to a test helper file is confusing, so this changeset reverts the fix and solve the issue by renaming them. https://github.com/rubygems/rubygems/commit/6460e018df
* Implemented some NilClass method in Ruby code is faster [Feature #17054] (#3366)S.H2021-06-025-33/+37
|
* use a bool instead of intAaron Patterson2021-06-021-3/+3
|
* Allocate exact space for objspace_each_objectsPeter Zhu2021-06-021-2/+2
| | | | | | We are only iterating over the eden heap so `heap_eden->total_pages` contains the exact number of pages we need to allocate for. `heap_allocated_pages` may contain pages in the tomb.
* * 2021-06-03 [ci skip]git2021-06-031-1/+1
|
* Fix `_MSC_VER` warningsDaisuke Fujimura (fd0)2021-06-033-11/+11
|
* Update to ruby/spec@c6e9285Benoit Daloze2021-06-024-22/+19
|
* Update to ruby/spec@a0b7d0dBenoit Daloze2021-06-0266-162/+938
|
* Update to ruby/mspec@0091e8aBenoit Daloze2021-06-023-3/+77
|
* Skip a `File.atime` test randomly failing on Travis ppc64le.Jun Aruga2021-06-021-0/+5
| | | | See <https://bugs.ruby-lang.org/issues/17926>.
* Refactor rb_vm_insn_addr2insn callsTakashi Kokubun2021-06-025-31/+19
| | | | It's been a way too much amount of ifdefs.
* Clarify these are just for MJITTakashi Kokubun2021-06-022-4/+4
| | | | | | and not for third-party libraries. See: e6484a153038703447b50fcac26349249922ab28