summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-12-21[ruby/rdoc] Bump version to 6.3.0Hiroshi SHIBATA
https://github.com/ruby/rdoc/commit/3d3616cb94
2020-12-21[ruby/rdoc] Guard for WEBrickHiroshi SHIBATA
https://github.com/ruby/rdoc/commit/b1e7129e05
2020-12-20Mark an ISeq being JIT-edTakashi Kokubun
This is to avoid SEGV on a CC reference in a normal compilation https://github.com/ruby/ruby/runs/1586578023
2020-12-20Mark active_unitsTakashi Kokubun
to avoid SEGV on mjit_recompile and compact_all_jit_code. For some reason, ISeqs on stack are sometimes GC-ed (why?) and therefore it may run mjit_recompile on a GC-ed ISeq, which I expected d07183ec85d to fix but apparently it may refer to random things if already GC-ed. Marking active_units would workaround the situation. http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3292740 Also, while compact_all_jit_code was executed, we saw some SEGVs where CCs seemed to be already GC-ed, meaning their owner ISeq was not marked properly. Even if units are still in active_units, it's not guaranteed that their ISeqs are in use. So in this case we need to mark active_units for a legitimate reason. http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3293277 http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3293090
2020-12-20Stop marking unit_queueTakashi Kokubun
The original motivation of this marking was https://github.com/k0kubun/yarv-mjit/issues/20. As wanabe said, there are multiple options to mitigate the issue, and Eric Wong introduced another fix at 143776f6fe by checking unit->iseq inside the lock. Therefore this particular condition has been covered in two ways, and the script given by wanabe no longer crashes without mjit_mark().
2020-12-21[DOC] Remove about FrozenError from Ractor::MovedObject [ci skip]Kazuhiro NISHIYAMA
Because unfreeze Ractor::MovedObject at https://github.com/ruby/ruby/commit/76e88480371469400346fca609efe67096813915
2020-12-20Add `require_relative` option to `assert_ractor`Marc-Andre Lafortune
2020-12-21eval_error.c: fix off-by-one error for --backtrace-limitYusuke Endoh
https://bugs.ruby-lang.org/issues/17413
2020-12-21Bump bundled rake version to 13.0.3Hiroshi SHIBATA
2020-12-21include/ruby/internal/xmalloc.h: document rb_eNoMemError卜部昌平
It was my bad, the exception that actually raises is rb_eNoMemError. [ci skip]
2020-12-21include/ruby/internal/xmalloc.h: doxygen tag卜部昌平
`@exception` is an alias of `@throw`. It might suite Ruby's document because ruby uses `raise` terminology instead of `throw`. [ci skip]
2020-12-21Fix misspellings [ci skip]Kazuhiro NISHIYAMA
2020-12-21Document usage of ArithmeticSequence in Array#slice, and add to NEWS (#3952)Victor Shepelev
Notes: Merged-By: mrkn <mrkn@ruby-lang.org>
2020-12-21should use owned_p instead of locked_pKoichi Sasada
It should raise an error if the same thread tris to call receive/receive_if. Notes: Merged: https://github.com/ruby/ruby/pull/3949
2020-12-20fix phrasing in commentIvan Denysov
Notes: Merged: https://github.com/ruby/ruby/pull/3951
2020-12-21rename to rb_ractor_make_shareable_copy()Koichi Sasada
from rb_ractor_make_copy_shareable().
2020-12-21Use Integer instead of Fixnum/BignumNobuyoshi Nakada
2020-12-21Fixed indefinite articles before "Integer" [ci skip]Nobuyoshi Nakada
2020-12-21Fixnum as a Symbol was an old feature until 1.6Nobuyoshi Nakada
2020-12-21* 2020-12-21 [ci skip]git
2020-12-21fix Ractor.make_shareable() with Class/ModuleKoichi Sasada
To check shareable-ness, rb_ractor_shareable_p() is needed for Class/Module objects isntead of checking flags.
2020-12-20irb: Removed unused variablesv3_0_0_rc1Nobuyoshi Nakada
2020-12-20irb: Define extension command on the given objectNobuyoshi Nakada
2020-12-20win32: Deprecate file CP version functionsNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/3948
2020-12-20win32: Added rb_w32_ureaddir only for UTF-8 [Feature #12654]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/3948
2020-12-20win32: Use UTF-8 as filesystem encoding [Feature #12654]Nobuyoshi Nakada
Co-Authored-By: Dāvis Mosāns <davispuh@gmail.com> Notes: Merged: https://github.com/ruby/ruby/pull/3948
2020-12-20irb: Define extension command only on the given objectNobuyoshi Nakada
Not to interfer in class variables.
2020-12-20Set non-verbose mode as well as tty modeNobuyoshi Nakada
2020-12-20Set :DEFAULT to PROMPT_MODE for CIaycabta
2020-12-20Suppress errors related to using variables that are not directly related to ↵aycabta
testing
2020-12-20[ruby/irb] Version 1.2.8aycabta
https://github.com/ruby/irb/commit/bcd96834c7
2020-12-20[ruby/reline] Version 0.1.10aycabta
https://github.com/ruby/reline/commit/723c6e191a
2020-12-20[ruby/irb] Add measure commandaycabta
You can use "measure" command to check performance in IRB like below: irb(main):001:0> 3 => 3 irb(main):002:0> measure TIME is added. => nil irb(main):003:0> 3 processing time: 0.000058s => 3 irb(main):004:0> measure :off => nil irb(main):005:0> 3 => 3 You can set "measure :on" by "IRB.conf[:MEASURE] = true" in .irbrc, and, also, set custom performance check method: IRB.conf[:MEASURE_PROC][:CUSTOM] = proc { |context, code, line_no, &block| time = Time.now result = block.() now = Time.now puts 'custom processing time: %fs' % (Time.now - time) if IRB.conf[:MEASURE] result } https://github.com/ruby/irb/commit/3899eaf2e2
2020-12-20[ruby/irb] Handle rest of tokens correctly if no newline at lastaycabta
https://github.com/ruby/irb/commit/f3c8edad2a
2020-12-20Remove unnecessary files from .documentKazuki Tsujimoto
* ruby:ext/rbconfig/exts.mk * ruby:ext/rbconfig/sizeof/Makefile * ruby:ext/rbconfig/sizeof/depend * ruby:ext/rbconfig/sizeof/mkmf.log * ruby:ext/win32/depend * ruby:ext/win32/exts.mk * ruby:ext/win32/resolv/depend * ruby:lib/racc/pre-setup
2020-12-20Adjusted indents of closing braces [ci skip]Nobuyoshi Nakada
2020-12-19Check mjit_call_p only when interruptedTakashi Kokubun
for leaf_without_check_ints insns. $ benchmark-driver -v --rbenv 'before --jit;after --jit' --repeat-count=12 --alternate --output=all benchmark.yml before --jit: ruby 3.0.0dev (2020-12-20T05:02:18Z master 02b3555874) +JIT [x86_64-linux] after --jit: ruby 3.0.0dev (2020-12-20T05:36:00Z master 3f58de4eab) +JIT [x86_64-linux] last_commit=Check mjit_call_p only when interrupted Calculating ------------------------------------- before --jit after --jit Optcarrot Lan_Master.nes 84.50647332260259 85.85057800433144 fps 91.17796644338372 92.09930605656054 91.29346683444497 93.01336611323687 91.50322318568884 93.07234029037433 91.66560903214686 93.22773241529644 91.82315142636172 93.37032901061119 92.15066379608260 93.83701526141679 92.37897097456643 93.86032792681507 92.53049815524908 93.91211970920320 92.78414507914283 94.09109196967890 92.90299756525958 94.40107239595325 93.70279428858790 95.01326369371263
2020-12-20Made an internal callback function staticNobuyoshi Nakada
2020-12-19Install gdb on ActionsTakashi Kokubun
2020-12-20Fix markups and indentationKazuki Tsujimoto
2020-12-20Fix typosKazuki Tsujimoto
2020-12-20Update documentation for pattern matchingKazuki Tsujimoto
2020-12-19`assert_ractor` tweak. Thanks NobuMarc-Andre Lafortune
2020-12-20sync RCLASS_CONST_TBL()Koichi Sasada
RCLASS_CONST_TBL() is shared resource so we need to sync with other ractors. Notes: Merged: https://github.com/ruby/ruby/pull/3944
2020-12-20Update rbs 1.0.0.pre (#3941)Soutaro Matsumoto
Notes: Merged-By: soutaro <matsumoto@soutaro.com>
2020-12-19[ruby/ostruct] Add Ractor testMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3942
2020-12-19[ruby/matrix] Add Ractor testMarc-Andre Lafortune
This reverts commit cacdf2681dcc7c431973f33a18979b10566ec2f9. Notes: Merged: https://github.com/ruby/ruby/pull/3942
2020-12-19Add `assert_ractor` [Feature #17367]Marc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3942
2020-12-20fix indentKoichi Sasada
2020-12-20ext/racc/cparse is ractor-safeKoichi Sasada