aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [rubygems/rubygems] Use newer module Minitest nameDavid Rodríguez2020-05-081-1/+1
| | | | https://github.com/rubygems/rubygems/commit/2890622479
* Add T_MOVED support to lldbAaron Patterson2020-05-071-0/+4
|
* Add compaction support for backtrace objectsAaron Patterson2020-05-071-4/+32
| | | | This just introduces compaction support for backtrace objects.
* Allow global variables to moveAaron Patterson2020-05-073-1/+45
| | | | | | | | | | This patch allows global variables that have been assigned in Ruby to move. I added a new function for the GC to call that will update global references and introduced a new callback in the global variable struct for updating references. Only pure Ruby global variables are supported right now, other references will be pinned.
* Fix a typo [ci skip]Kazuhiro NISHIYAMA2020-05-081-1/+1
|
* Fix rb_profile_frame_classpath to handle module singletonsJean Boussier2020-05-072-7/+35
| | | | | | Right now `SomeClass.method` is properly named, but `SomeModule.method` is displayed as `#<Module:0x000055eb5d95adc8>.method` which makes profiling annoying.
* `T_MOVED` should never be pushed on the mark stackAaron Patterson2020-05-071-0/+1
| | | | | | | No objects should ever reference a `T_MOVED` slot. If they do, it's absolutely a bug. If we kill the process when `T_MOVED` is pushed on the mark stack it will make it easier to identify which object holds a reference that hasn't been updated.
* Restore the external and internal encodings of STDIN, STDOUT, and STDERRYusuke Endoh2020-05-081-0/+4
| | | | IRB::ReadlineInputMethod#initialize changes them via IRB.set_encoding.
* test/irb/test_cmd.rb: clear IRB.@CONF on setupYusuke Endoh2020-05-081-0/+1
| | | | | | | | | | | | | | | | | It caches a path to .irbrc file, which has caused random failure: ``` 1) Failure: TestIRB::ExtendCommand#test_irb_info_multiline [/home/mame/work/ruby/test/irb/test_cmd.rb:49]: Expected / Ruby\sversion: .+\n IRB\sversion:\sirb .+\n InputMethod:\sReidlineInputMethod\swith\sReline .+ and .+\n \.irbrc\spath: .+ /x to match "Ruby version: 2.8.0\n" + "IRB version: irb 1.2.3 (2020-02-15)\n" + "InputMethod: ReidlineInputMethod with Reline 0.1.4 and /tmp/test_reline_config_155659/.inputrc\n". ```
* * 2020-05-08 [ci skip]git2020-05-081-1/+1
|
* Check encodings of STDIN,STDOUT,STDERR tooKazuhiro NISHIYAMA2020-05-081-12/+19
|
* LEGAL: add legal situation of parse.h [ci skip]卜部昌平2020-05-071-1/+2
| | | | There is parse.h apart from parse.c these days.
* LEGAL: add legal situation of ext/pty/pty.c [ci skip]卜部昌平2020-05-071-0/+14
| | | | This file is not under Ruby's license.
* LEGAL: add legal situation of enc/trans/ucm [ci skip]卜部昌平2020-05-071-0/+15
| | | | | IBM holds their copyrights. Whether they are free software or not is uncler. But arguably they are, given we have copied them from glibc.
* LEGAL: win32/win32.h no longer exists [ci skip]卜部昌平2020-05-071-1/+2
| | | | The file was moved.
* LEGAL: add missing entries for enc [ci skip]卜部昌平2020-05-071-0/+60
| | | | Some files were missing.
* LEGAL: add legal situation of benchmarks [ci skip]卜部昌平2020-05-071-0/+30
| | | | | It is no longer obvious what were the original license of so_* benchmarks, because the original was lost.
* LEGAL: add legal situation of addr2line.c [ci skip]卜部昌平2020-05-071-0/+40
| | | | This file includes BSD printf.
* LEGAL: add legal situation of aclocal.m4 [ci skip]卜部昌平2020-05-071-0/+11
| | | | FSF holds its copyright.
* Remove test of ruby-mode.elKazuhiro NISHIYAMA2020-05-071-183/+0
| | | | Because ruby-mode.el already removed at f03e68edb80dca962290d1fb3a6d49dabdbb911e
* Always correct sp on leave cancelTakashi Kokubun2020-05-061-3/+1
| | | | | | | | | | Even if local stack optimization is not used and values are written to VM stack, the stack pointer itself may not be moved properly. So this should be always moved on JIT cancellation. By the way it's hard to write a test for this because if we try to generate an interrupt, it will be a method call and it consumes the interrupt by itself on popping a frame.
* Remove OPT_CHECKED_RUN codeTakashi Kokubun2020-05-061-5/+0
| | | | | Now this one is actually not in use because we override entire leave definition for JIT.
* leakchecker.rb: try `lsof`Nobuyoshi Nakada2020-05-071-2/+9
|
* Suffixed memory leak tests as "memory_leak"Nobuyoshi Nakada2020-05-073-6/+8
| | | | So that `TEST_EXCLUDES` option in common.mk works.
* Cut down warm-up loops and gain main/warm-up ratioNobuyoshi Nakada2020-05-071-3/+5
|
* Share logically equivalent functionsNobuyoshi Nakada2020-05-071-12/+2
|
* * 2020-05-07 [ci skip]git2020-05-071-1/+1
|
* Enable OPT_CHECKED_RUN on MJIT for debuggingTakashi Kokubun2020-05-061-2/+1
| | | | | | Trying to debug errors like http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2921397 http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2894526
* Fakes IPSocket.getaddress in the whole methodNobuyoshi Nakada2020-05-061-24/+25
| | | | | To get rid of calling `getaddrinfo`, which may keep FDs internally.
* Makes nil-safeNobuyoshi Nakada2020-05-061-1/+1
|
* Ignore FDs kept by system libraryNobuyoshi Nakada2020-05-061-0/+13
| | | | | `getaddrinfo` on macOS seems keeping FDs to query host names internally.
* Fixed leaked fdsNobuyoshi Nakada2020-05-061-3/+7
|
* leakchecker.rb: search /dev/fd tooNobuyoshi Nakada2020-05-061-12/+12
| | | | It is more popular than /proc/self/fd.
* [DOC] Removed no longer meaningful part [ci skip]Nobuyoshi Nakada2020-05-061-3/+0
| | | | | As now `Object#===` document is separated from `rb_equal`, this note no longer makes sense.
* Removed unnecessary duplicate codeNobuyoshi Nakada2020-05-061-4/+1
| | | | | `rb_equal` may be inlined in `case_equal` and actually same code is generated twice.
* Generalize the explanation of the side effect of the rb_equal() optimizationBenoit Daloze2020-05-061-2/+4
|
* Document rb_equal() and clarify the relation with Kernel#===Benoit Daloze2020-05-061-4/+19
| | | | | | | * Multiple times people have been confused and believed rb_equal() called #=== but it does not, it calls #==. * This optimization has a subtle side effect for Float::NAN, which is now documented.
* Remove redundant check in rb_obj_cmp()Benoit Daloze2020-05-061-1/+1
| | | | * rb_equal() already checks using `obj1 == obj2`.
* * 2020-05-06 [ci skip]git2020-05-061-1/+1
|
* Improve documentation for Enumerator#next, next_values, peek and peek_values.Marc-Andre Lafortune2020-05-051-7/+15
| | | | [DOC] [#16829]
* Fix gemspecMarc-Andre Lafortune2020-05-051-1/+1
|
* [ruby/uri] Check if DN existsNobuyoshi Nakada2020-05-052-0/+5
| | | | | | https://bugs.ruby-lang.org/issues/16830 https://github.com/ruby/uri/commit/b4bf8c1217
* envutil.rb: Also alias to #nameNobuyoshi Nakada2020-05-051-2/+10
|
* * 2020-05-05 [ci skip]git2020-05-051-1/+1
|
* Output compaction stats in one loop / eliminate 0 countsAaron Patterson2020-05-041-4/+6
| | | | | | | | We only need to loop `T_MASK` times once. Also, not every value between 0 and `T_MASK` is an actual Ruby type. Before this change, some integers were being added to the result hash even though they aren't actual types. This patch omits considered / moved entries that total 0, cleaning up the result hash and eliminating these "fake types".
* Bison 3.5.91 now defaults parse.error to "simple"Nobuyoshi Nakada2020-05-042-0/+2
|
* Bison 3.59.1 folds yydestruct function headerNobuyoshi Nakada2020-05-041-0/+1
|
* Fix indentationKazuki Tsujimoto2020-05-042-5/+5
|
* Fix pseudo code for NODE_ARYPTN, NODE_HSHPTNKazuki Tsujimoto2020-05-041-2/+0
| | | | | Due to the change in 3893a8dd42fb3bbd71750648c3c0de118955a6ea, there is no longer a need to put true/false.
* Suppress warnings by gcc 10.1.0-RC-20200430Nobuyoshi Nakada2020-05-042-1/+13
| | | | | | | | | | | | | | | | | | | | | | * Folding results should not be empty. If `OnigCodePointCount(to->n)` were 0, `for` loop using `fn` wouldn't execute and `ncs` elements are not initialized. ``` enc/unicode.c:557:21: warning: 'ncs[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] 557 | for (i = 0; i < ncs[0]; i++) { | ~~~^~~ ``` * Cast to `enum yytokentype` Additional enums for scanner events by ripper are not included in `yytokentype`. ``` ripper.y:7274:28: warning: implicit conversion from 'enum <anonymous>' to 'enum yytokentype' [-Wenum-conversion] ```