aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Data: delete卜部昌平2020-12-225-18/+34
| | | | | | | | Has been deprecated since 684bdf6171b76f5bc5e4f05926a5ab01ec2b4fd5. Matz says in [ruby-core:83954] that Data should be an alias of Object. Because rb_cData has not been deprecated, let us deprecate the constant to make it a C-level synonym of rb_cObject.
* Update documentation for pattern matchingKazuki Tsujimoto2020-12-221-18/+37
|
* * 2020-12-22 [ci skip]git2020-12-221-1/+1
|
* separate rb_ractor_pub from rb_ractor_tKoichi Sasada2020-12-229-67/+62
| | | | | | | | | separate some fields from rb_ractor_t to rb_ractor_pub and put it at the beggining of rb_ractor_t and declare it in vm_core.h so vm_core.h can access rb_ractor_pub fields. Now rb_ec_ractor_hooks() is a complete inline function and no MJIT related issue.
* TracePoint.new(&block) should be ractor-localKoichi Sasada2020-12-228-17/+48
| | | | | TracePoint should be ractor-local because the Proc can violate the Ractor-safe.
* Replaced magic numbers tr tableNobuyoshi Nakada2020-12-211-14/+15
|
* On Solaris, _XOPEN_SOURCE should be undefined for C++ sources.Naohisa Goto2020-12-211-0/+2
|
* export rb_eRactorIsolationError for MJITKoichi Sasada2020-12-211-2/+3
| | | | | | | | | | | | https://ci.appveyor.com/project/ruby/ruby/builds/36942168/job/7ugrpk0pndoly9wp ``` _ruby_mjit_p11920u0.c C:\Users\appveyor\AppData\Local\Temp\1/_ruby_mjit_p11920u0.c(14) : warning C4005: 'GET_SELF' : macro redefinition c:\projects\ruby\vm_insnhelper.h(111) : see previous definition of 'GET_SELF' Creating library C:\Users\appveyor\AppData\Local\Temp\1/_ruby_mjit_p11920u0.lib and object C:\Users\appveyor\AppData\Local\Temp\1/_ruby_mjit_p11920u0.exp _ruby_mjit_p11920u0.obj : error LNK2001: unresolved external symbol rb_eRactorIsolationError C:\Users\appveyor\AppData\Local\Temp\1/_ruby_mjit_p11920u0.so : fatal error LNK1120: 1 unresolved externals ```
* [json] Avoid method redefinitionKenta Murata2020-12-211-9/+9
|
* Introduce Ractor::IsolationErrorKoichi Sasada2020-12-215-24/+20
| | | | | | | | | | | Ractor has several restrictions to keep each ractor being isolated and some operation such as `CONST="foo"` in non-main ractor raises an exception. This kind of operation raises an error but there is confusion (some code raises RuntimeError and some code raises NameError). To make clear we introduce Ractor::IsolationError which is raised when the isolation between ractors is violated.
* NEWS: JSON is Ractor compatible [ci skip]Kenta Murata2020-12-211-0/+2
|
* [json] Make json Ractor safeKenta Murata2020-12-214-1/+52
|
* [json] JSON_parse_float: Fix how to convert numberKenta Murata2020-12-212-50/+72
| | | | | | | | | | | Stop BigDecimal-specific optimization. Instead, it tries the conversion methods in the following order: 1. `try_convert`, 2. `new`, and 3. class-named function, e.g. `Foo::Bar.Baz` function for `Foo::Bar::Baz` class If all the above candidates are unavailable, it fallbacks to Float.
* [json] Make JSON.create_id thread-safeKenta Murata2020-12-211-1/+14
|
* [json] Stop using prototype objectsKenta Murata2020-12-213-49/+18
|
* Fixed a typo in an error class nameNobuyoshi Nakada2020-12-211-1/+1
|
* Enable escape sequence on Windows10 console via pager tooNobuyoshi Nakada2020-12-211-2/+19
|
* [ruby/digest] Remove .gitignore and .travis.yml from gemspecKenta Murata2020-12-211-6/+8
| | | | https://github.com/ruby/digest/commit/7b57b73f46
* Enable escape sequence on Windows10 consoleU.Nakamura2020-12-211-0/+11
| | | | | * win32/win32.c (init_stdhandle): enable escape sequence on Windows10 console to show `ruby --help` colors correctly.
* [ruby/rdoc] Bump version to 6.3.0Hiroshi SHIBATA2020-12-211-1/+1
| | | | https://github.com/ruby/rdoc/commit/3d3616cb94
* [ruby/rdoc] Guard for WEBrickHiroshi SHIBATA2020-12-211-1/+1
| | | | https://github.com/ruby/rdoc/commit/b1e7129e05
* Mark an ISeq being JIT-edTakashi Kokubun2020-12-202-2/+15
| | | | | This is to avoid SEGV on a CC reference in a normal compilation https://github.com/ruby/ruby/runs/1586578023
* Mark active_unitsTakashi Kokubun2020-12-203-4/+41
| | | | | | | | | | | | | | | | | | 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
* Stop marking unit_queueTakashi Kokubun2020-12-203-31/+0
| | | | | | | | | | 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().
* [DOC] Remove about FrozenError from Ractor::MovedObject [ci skip]Kazuhiro NISHIYAMA2020-12-211-9/+0
| | | | | Because unfreeze Ractor::MovedObject at https://github.com/ruby/ruby/commit/76e88480371469400346fca609efe67096813915
* Add `require_relative` option to `assert_ractor`Marc-Andre Lafortune2020-12-201-1/+6
|
* eval_error.c: fix off-by-one error for --backtrace-limitYusuke Endoh2020-12-211-2/+2
| | | | https://bugs.ruby-lang.org/issues/17413
* Bump bundled rake version to 13.0.3Hiroshi SHIBATA2020-12-211-1/+1
|
* include/ruby/internal/xmalloc.h: document rb_eNoMemError卜部昌平2020-12-211-42/+43
| | | | | It was my bad, the exception that actually raises is rb_eNoMemError. [ci skip]
* include/ruby/internal/xmalloc.h: doxygen tag卜部昌平2020-12-211-8/+8
| | | | | `@exception` is an alias of `@throw`. It might suite Ruby's document because ruby uses `raise` terminology instead of `throw`. [ci skip]
* Fix misspellings [ci skip]Kazuhiro NISHIYAMA2020-12-214-5/+5
|
* Document usage of ArithmeticSequence in Array#slice, and add to NEWS (#3952)Victor Shepelev2020-12-213-5/+27
|
* should use owned_p instead of locked_pKoichi Sasada2020-12-212-1/+3
| | | | | It should raise an error if the same thread tris to call receive/receive_if.
* fix phrasing in commentIvan Denysov2020-12-201-1/+1
|
* rename to rb_ractor_make_shareable_copy()Koichi Sasada2020-12-212-2/+2
| | | | from rb_ractor_make_copy_shareable().
* Use Integer instead of Fixnum/BignumNobuyoshi Nakada2020-12-21144-389/+391
|
* Fixed indefinite articles before "Integer" [ci skip]Nobuyoshi Nakada2020-12-218-8/+8
|
* Fixnum as a Symbol was an old feature until 1.6Nobuyoshi Nakada2020-12-218-8/+8
|
* * 2020-12-21 [ci skip]git2020-12-211-1/+1
|
* fix Ractor.make_shareable() with Class/ModuleKoichi Sasada2020-12-212-2/+9
| | | | | To check shareable-ness, rb_ractor_shareable_p() is needed for Class/Module objects isntead of checking flags.
* irb: Removed unused variablesv3_0_0_rc1Nobuyoshi Nakada2020-12-201-2/+0
|
* irb: Define extension command on the given objectNobuyoshi Nakada2020-12-201-3/+3
|
* win32: Deprecate file CP version functionsNobuyoshi Nakada2020-12-203-55/+55
|
* win32: Added rb_w32_ureaddir only for UTF-8 [Feature #12654]Nobuyoshi Nakada2020-12-202-1/+10
|
* win32: Use UTF-8 as filesystem encoding [Feature #12654]Nobuyoshi Nakada2020-12-206-59/+37
| | | | Co-Authored-By: Dāvis Mosāns <davispuh@gmail.com>
* irb: Define extension command only on the given objectNobuyoshi Nakada2020-12-202-3/+5
| | | | Not to interfer in class variables.
* Set non-verbose mode as well as tty modeNobuyoshi Nakada2020-12-201-0/+4
|
* Set :DEFAULT to PROMPT_MODE for CIaycabta2020-12-201-20/+8
|
* Suppress errors related to using variables that are not directly related to ↵aycabta2020-12-201-4/+20
| | | | testing
* [ruby/irb] Version 1.2.8aycabta2020-12-201-2/+2
| | | | https://github.com/ruby/irb/commit/bcd96834c7