summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-02-07[ruby/reline] Scroll down when ^C is pressedaycabta
https://github.com/ruby/reline/commit/6877a7e3f5
2021-02-07[ruby/reline] Remove an unused variableaycabta
https://github.com/ruby/reline/commit/123ea51166
2021-02-07[ruby/reline] Initialize uninitialized variables in testsaycabta
https://github.com/ruby/reline/commit/25af4bb64b
2021-02-07[ruby/reline] Cache pasting state in processing a keyaycabta
Because it's too slow. The rendering time in IRB has been reduced as follows: start = Time.now def each_top_level_statement initialize_input catch(:TERM_INPUT) do loop do begin prompt unless l = lex throw :TERM_INPUT if @line == '' else @line_no += l.count("\n") next if l == "\n" @line.concat l if @code_block_open or @ltype or @continue or @indent > 0 next end end if @line != "\n" @line.force_encoding(@io.encoding) yield @line, @exp_line_no end break if @io.eof? @line = '' @exp_line_no = @line_no @indent = 0 rescue TerminateLineInput initialize_input prompt end end end end puts "Duration: #{Time.now - start} seconds" 0.22sec -> 0.14sec https://github.com/ruby/reline/commit/b8b3dd52c0
2021-02-06.gdbinit: Fix indentation in print_id [ci skip]Adam Jensen
Notes: Merged: https://github.com/ruby/ruby/pull/4156
2021-02-07* 2021-02-07 [ci skip]git
2021-02-06Fix grammatical errorGaren Torikian
Notes: Merged: https://github.com/ruby/ruby/pull/4155
2021-02-06[ruby/irb] Enable to reassign a new block with "measure" commandaycabta
https://github.com/ruby/irb/commit/b444573aa2
2021-02-06[ruby/irb] Allow "measure" command to take blockaycabta
https://github.com/ruby/irb/commit/20f1ca23e9
2021-02-06Improve performance of Array#- when it is called with empty arrayMasaki Matsushita
This change make Array#- return a copy of the receiver when the other array is empty.
2021-02-06[DOC] Fixed a markup in Array#sum [ci skip]Nobuyoshi Nakada
2021-02-06* 2021-02-06 [ci skip]git
2021-02-06Stop disabling firewallNobuyoshi Nakada
2021-02-05unblock thread is only for main ractor.Koichi Sasada
other ractors should not have a unblock thread. This patch fixes 6f727853cee41195b67ee5d793c1ac23fe1a6ae0.
2021-02-05Added tests for MakeMakefile#test_egrep_cppNobuyoshi Nakada
2021-02-05Add -fdeclspec to CFLAGS instead of CCNobuyoshi Nakada
2021-02-05[ruby/io-console] Mark all tests that use run_pty as pend on JRubyCharles Oliver Nutter
JRuby's PTY.spawn does not produce a process with its own controlling terminal, which is necessary for testing these raw escape sequences. This commit marks those tests as pending. The functionality tested appears to work at a command line, but due to this PTY bug in JRuby we cannot test it this way. See https://github.com/jruby/jruby/issues/6552 https://github.com/ruby/io-console/commit/a486b72e5e https://github.com/ruby/io-console/commit/b5c8e7bfd8
2021-02-05[ruby/io-console] Use omit instead of skipCharles Oliver Nutter
This test runs with test/unit now, which defines omit instead of skip. https://github.com/ruby/io-console/commit/bd731d0b8d
2021-02-05[ruby/io-console] Skip test on JRubyCharles Oliver Nutter
The subprocess script here works fine at a command line, but when run as a pty subprocess during the tests the master side hangs waiting for output. https://github.com/ruby/io-console/commit/4a21610ece
2021-02-05[ruby/io-console] Add console.rb to search for pathsCharles Oliver Nutter
https://github.com/ruby/io-console/commit/74567376c4
2021-02-05[ruby/io-console] Run subprocesses without test librariesNobuyoshi Nakada
Now io/console is loaded from test-unit indirectly, test-unit requires power_assert which requires io/console. https://github.com/ruby/io-console/commit/8817d07951 https://github.com/ruby/io-console/commit/639cce89de
2021-02-05travis_retry.sh is not needed on GitHub ActionsNobuyoshi Nakada
At least check_dependencies.yml has not failed here yet.
2021-02-04objspace_dump.c: tag singleton classes and reference the superclassJean Boussier
Notes: Merged: https://github.com/ruby/ruby/pull/4104
2021-02-05* 2021-02-05 [ci skip]git
2021-02-04Don't register non-heap allocated objectsAaron Patterson
`rb_define_const` can add objects as "mark objects". This is to make code like this work: https://github.com/ruby/ruby/blob/33d6e92e0c6eaf1308ce7108e653c53bb5fb106c/ext/etc/etc.c#L1201 ``` rb_define_const(rb_cStruct, "Passwd", sPasswd); /* deprecated name */ ``` sPasswd is a heap allocated object that is also a C global, so we can't move it (it needs to be pinned). However, we have many calls to `rb_define_const` that just pass in an integer like this: ``` rb_define_const(rb_cDBM, "WRITER", INT2FIX(O_RDWR|RUBY_DBM_RW_BIT)); ``` Non heap allocated objects like integers will never move, so there is no reason to waste time in the GC marking / pinning them. Notes: Merged: https://github.com/ruby/ruby/pull/4152
2021-02-04[ruby/irb] Add info.rb to gemspecima1zumi
https://github.com/ruby/irb/commit/adbba19adf
2021-02-04Revert "vm_dump.c: Do not show C backtrace on riscv"Yusuke Endoh
This reverts commit 6985bfb72c8d7e7d94f1aad1f0902b602bbfa6da. Now it should work on riscv by the previous commit. [Bug #17609]
2021-02-04addr2line.c: DW_LNS_fixed_advance_pc takes a single uhalf operandYusuke Endoh
Fixes [Bug #17609] Co-Authored-By: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
2021-02-04Remove unsued str_new_shared function declarationS-H-GAMELINKS
Notes: Merged: https://github.com/ruby/ruby/pull/4151
2021-02-04[DOC] Fix typo in ext/socket/socket.c [ci skip]Dimitris Zorbas
Notes: Merged: https://github.com/ruby/ruby/pull/4150
2021-02-04[ruby/bigdecimal] Fix uint64 conversionKenta Murata
Stop using logarithm to compute the number of components. Instead, use the theoretical maximum number of components for buffer, and count up the actual number of components during conversion. https://github.com/ruby/bigdecimal/commit/9067b353ac
2021-02-04[ruby/bigdecimal] Stop using rmpd and RMPD prefixes and DBLE_FIGKenta Murata
https://github.com/ruby/bigdecimal/commit/7479923fdb
2021-02-04rb_clear_method_cache_by_class: no longer exist卜部昌平
It is questionable whether we can change a public API but this function does not exist today. No way.
2021-02-03Revert "Don't pin `val` passed in to `rb_define_const`."Aaron Patterson
I think this is breaking something This reverts commit 1be84e53d76cff30ae371f0b397336dee934499d.
2021-02-04* 2021-02-04 [ci skip]git
2021-02-03Don't pin `val` passed in to `rb_define_const`.Aaron Patterson
The caller should be responsible for holding a pinned reference (if they need that) Notes: Merged: https://github.com/ruby/ruby/pull/4144
2021-02-03Make alias for aliased original methodNobuyoshi Nakada
Chaining aliased methods increases searching cost linearly. Notes: Merged: https://github.com/ruby/ruby/pull/4149
2021-02-03[ruby/bigdecimal] Fix the maximum length of float numberKenta Murata
This change is for preventing the false-positive alert by CoverityScan. See CID-1471770 for the detail. https://github.com/ruby/bigdecimal/commit/4d5b97125b
2021-02-03Prefer block forms to close opened filesNobuyoshi Nakada
2021-02-03Open gzip file in binary modeNobuyoshi Nakada
2021-02-03use goto intead of recursion on vm_call0_body()Koichi Sasada
"alias" type method entries can chain another aliased method so that machine stack can be overflow on nested alias chain. http://ci.rvm.jp/results/trunk-repeat20@phosphorus-docker/3344209 This patch fix this issue by use goto instead of recursion if possible. TODO: Essentially, the alias method should not points another aliased method entry. Try to fix it later. Notes: Merged: https://github.com/ruby/ruby/pull/4148
2021-02-03Fix failures with EditLineKazuhiro NISHIYAMA
On macOS with EditLine: ``` $ ruby -r readline -e 'Readline.readline("> "); p Readline::VERSION' < /dev/null "EditLine wrapper" ``` On Linux with GNU readline: ``` $ ruby -r readline -e 'Readline.readline("> "); p Readline::VERSION' < /dev/null > "8.0" ```
2021-02-03Adjusted indent [ci skip]Nobuyoshi Nakada
2021-02-03only main thread can modify vm->ubf_async_safeKoichi Sasada
vm->ubf_async_safe is VM global resource and only main thread can manipulate it. [Bug #17482] Notes: Merged: https://github.com/ruby/ruby/pull/4147
2021-02-03* 2021-02-03 [ci skip]git
2021-02-03[ruby/irb] follow up the actual line numberNobuhiro IMAI
https://github.com/ruby/irb/commit/7aed8fe3b1
2021-02-02NetBSD build update. (#4079)David CARLIER
Notes: Merged-By: nurse <naruse@airemix.jp>
2021-02-02add debug code for timer_posixKoichi Sasada
timer_posix mode is managed by timer_posix.state. This patch adds some debug code for the transition of the state. Notes: Merged: https://github.com/ruby/ruby/pull/4145
2021-02-02Pass revision by hand if the commit message lacks the ticket numberNARUSE, Yui
2021-02-02Use local repository instead of remoteNARUSE, Yui
to improve performance