Commit graph

67695 commits

Author SHA1 Message Date
aycabta
c0349765e9 [ruby/reline] Remove debug code
2389d175f7
2021-08-29 20:30:32 +09:00
aycabta
2ec3977ce2 [ruby/reline] Clear after cursor
4d7503cd1f
2021-08-29 20:30:32 +09:00
aycabta
b95e5f4a41 [ruby/reline] Move cursor to rerender right margin of dialog correctly
554855013b
2021-08-29 20:30:32 +09:00
usa
788c047695 [ruby/reline] Create windows.rb
see issue #317

aad164de93
2021-08-29 20:30:32 +09:00
aycabta
d7f654ad5a [ruby/reline] Add "sleep 0.01" to Windows event loop
dfc89eae53
2021-08-29 20:30:32 +09:00
aycabta
6f66927aef [ruby/reline] Add comments about where rerendering
4406069b7e
2021-08-29 20:30:32 +09:00
aycabta
55459bdd67 [ruby/reline] Use background color instead of border frame
8f1db0a076
2021-08-29 20:30:32 +09:00
aycabta
6fda457448 [ruby/reline] Suppress warning; unused variable
74a6124e8d
2021-08-29 20:30:32 +09:00
aycabta
1e527c8a55 [ruby/reline] Remove an unnecessary variable
5435c1aa3f
2021-08-29 20:30:32 +09:00
aycabta
fb0fc20196 [ruby/reline] Implement dialog with autocomplete callback
1401d6165e
2021-08-29 20:30:32 +09:00
aycabta
e66200780b [ruby/reline] Separate calling completion proc with checking args
3203cb97db
2021-08-29 20:30:32 +09:00
aycabta
eadd25d5af [ruby/irb] Update dependency to "reline >= 0.2.7.pre.1" for use dialog feature in tests
df04a9a881
2021-08-29 20:30:07 +09:00
aycabta
cde84a5baa [ruby/irb] Rescue NotFoundError of RDoc::RI::Driver#expand_name
c5f13b23d7
2021-08-29 20:30:01 +09:00
aycabta
ae4e301d5d [ruby/irb] Add show doc dialog for Reline
026700499d
2021-08-29 20:29:54 +09:00
Nobuyoshi Nakada
a615885f1e
Free previously used tables [Bug #18134] 2021-08-29 17:18:58 +09:00
Nobuyoshi Nakada
265a725830
Handle non-succeeding reports mingled with dots 2021-08-29 16:32:55 +09:00
Nobuyoshi Nakada
6c40aa35a5
Memory::Status#_update should return self 2021-08-29 16:32:12 +09:00
Nobuyoshi Nakada
7487371eeb
Make ruby.pc from make
Expand variables undefined in configure.ac, RUBY_RELEASE_DATE and
so on.
2021-08-29 14:08:53 +09:00
Nobuyoshi Nakada
623736ae7f
Move DEFFILE to EXTDLDFLAGS
So that it is no longer needed in ruby.pc.in.
2021-08-29 13:04:42 +09:00
Nobuyoshi Nakada
323c0c392a
Reorder ruby.pc variables
Moved variables obviously independent from others first.
2021-08-29 12:50:24 +09:00
Kazuki Tsujimoto
5d62fd8e17
Update power_assert to 2.0.1 2021-08-29 11:38:45 +09:00
Nobuyoshi Nakada
523bf31564
Add negative position tests [Bug #18138] 2021-08-29 10:35:00 +09:00
Nobuyoshi Nakada
5dc36ddcd0
Add out of range tests for Array#slice! 2021-08-29 10:33:22 +09:00
git
7731be94eb * 2021-08-29 [ci skip] 2021-08-29 09:41:46 +09:00
Mike Dalessio
d43279edac Fix length calculation for Array#slice!
Commit 4f24255 introduced a bug which allows a length to be passed to
rb_ary_new4 which is too large, resulting in invalid memory access.

For example:

    (1..1000).to_a.slice!(-2, 1000)
2021-08-29 09:41:22 +09:00
Lars Kanis
7e36b91526 Add Windows as a supported OS for Process.clock_gettime [ci skip] 2021-08-28 18:26:19 +09:00
git
f4b73f77ef * 2021-08-28 [ci skip] 2021-08-28 18:22:29 +09:00
Nobuyoshi Nakada
394498b878
[Windows CI] Stop VS-2022
We have previewed it, and know it doesn't work well now.
2021-08-28 18:21:47 +09:00
Nobuyoshi Nakada
47a2ea4df5
[Windows CI] Stop on error in VS-2022 2021-08-28 18:21:44 +09:00
Nobuyoshi Nakada
76e8cfd158
[Windows CI] Setup env 2021-08-28 18:21:39 +09:00
Peter Zhu
ed31bdfeee Fix memory leak in Variable Width Allocation
Force recycled objects could create a freelist for the page. At the
start of sweeping we should append to the freelist to avoid
permanently losing the slots on the freelist.
2021-08-27 10:13:32 -04:00
Nobuyoshi Nakada
3562c7ba33
Update the list of replacing objects under missing 2021-08-27 12:43:45 +09:00
Nobuyoshi Nakada
80c1faf076
Use C99-defined signbit macro 2021-08-27 12:42:23 +09:00
Nobuyoshi Nakada
04be8e84db
Use C99-defined macros to classify a floating-point number 2021-08-27 12:41:30 +09:00
Nobuyoshi Nakada
3711467362
[Windows CI] Set PATCH path 2021-08-27 09:34:53 +09:00
Nobuyoshi Nakada
a2831cf247
[Windows CI] Make test-all parallel and verbose 2021-08-27 09:34:53 +09:00
Nobuyoshi Nakada
8a754bc5c9
[Windows CI] Group nmake step 2021-08-27 09:34:53 +09:00
Nobuyoshi Nakada
fbdd1c6a79
[Windows CI] Moved parameters to include 2021-08-27 09:34:52 +09:00
git
db4bfdfb4c * 2021-08-27 [ci skip] 2021-08-27 09:16:40 +09:00
Henrik Nyh
19ab24a064 [DOC] Fix a typo in Dir.fnmatch 2021-08-27 09:16:25 +09:00
Kazuhiro NISHIYAMA
ef10e8a1eb Use patch installed by msys2/setup-msys2 2021-08-26 19:47:48 +09:00
Kazuhiro NISHIYAMA
79a3e89dae Use bundled libffi on windows-2022 2021-08-26 19:47:48 +09:00
Kazuhiro NISHIYAMA
5550c2719a Install patch
Because patch does not installed on windows-2022.

https://github.com/actions/virtual-environments/issues/3949
> Only pure MSYS2 is installed. No additional packages
2021-08-26 19:47:48 +09:00
Kazuhiro NISHIYAMA
69615251f9 Ignore errors on windows-2022
https://github.com/ruby/ruby/pull/4775/checks?check_run_id=3419490832#step:13:38
2021-08-26 19:47:48 +09:00
Kazuhiro NISHIYAMA
d96ba8c5c3 Use newer libffi on windows-2022 2021-08-26 19:47:48 +09:00
Kazuhiro NISHIYAMA
b1f58d3e91 Set VCVARS 2021-08-26 19:47:48 +09:00
Kazuhiro NISHIYAMA
5e65f31b5a Add Windows Server 2022 with Visual Studio 2022
https://github.blog/changelog/2021-08-23-github-actions-windows-server-2022-with-visual-studio-2022-is-now-available-on-github-hosted-runners-public-beta/
2021-08-26 19:47:48 +09:00
Lars Kanis
9c0582704f Fix example fiber scheduler reg. writable events
There were two issues:

1. When an IO object is waiting for writablility only (as in test_tcp_accept) the selected hash is empty.
   Therefore selected[fiber] returns nil but needs to default to 0 in order to be or'ed with IO::WRITABLE.

2. When an IO object is waiting for read- or writability (as in test_tcp_connect), but only one of these
   two events arrive, the Fiber and IO object need to be removed from the other `@readable` or `@writable` list.
2021-08-26 21:49:12 +12:00
Sutou Kouhei
a2ad0cb7b4 Make Hash#each family usable in Ractor
We don't need to increment/decrement iteration level for frozen Hash
because frozen Hash can't be modified. We can assume that nobody
changes the target Hash while calling #each family.

How to reproduce:

    a = {}
    100.times do |i|
      a[i] = true
    end
    Ractor.make_shareable(a)

    4.times.collect do
      Ractor.new(a) do |b|
        100.times do
          b.each_value do
          end
        end
      end
    end.each(&:take)

Example output:

    internal:ractor>:267: warning: Ractor is experimental, and the behavior may change in future versions of Ruby! Also there are many implementation issues.
    #<Thread:0x00007fcfb087bb30 run> terminated with exception (report_on_exception is true):
    #<Thread:0x00007fcfb087b8d8 run> terminated with exception (report_on_exception is true):
    #<Thread:0x00007fcfb088d678 run> terminated with exception (report_on_exception is true):
    #<Thread:0x00007fcfb087bd88 run> terminated with exception (report_on_exception is true):
    /tmp/h.rb:10:in `each_value'/tmp/h.rb:10:in `each_value': : /tmp/h.rb:10:in `each_value'no implicit conversion from nil to integer/tmp/h.rb:10:in `each_value'no implicit conversion from nil to integer (: :  (TypeErrorTypeError)no implicit conversion from nil to integer)no implicit conversion from nil to integer (

     (TypeErrorTypeError	from /tmp/h.rb:10:in `block (3 levels) in <main>'
    	from /tmp/h.rb:10:in `block (3 levels) in <main>'
    ))	from /tmp/h.rb:9:in `times'

    	from /tmp/h.rb:9:in `times'

    	from /tmp/h.rb:9:in `block (2 levels) in <main>'
    	from /tmp/h.rb:10:in `block (3 levels) in <main>'
    	from /tmp/h.rb:10:in `block (3 levels) in <main>'
    	from /tmp/h.rb:9:in `block (2 levels) in <main>'
    	from /tmp/h.rb:9:in `times'
    	from /tmp/h.rb:9:in `times'
    	from /tmp/h.rb:9:in `block (2 levels) in <main>'
    	from /tmp/h.rb:9:in `block (2 levels) in <main>'
    <internal:ractor>:694:in `take': thrown by remote Ractor. (Ractor::RemoteError)
    	from /tmp/h.rb:14:in `each'
    	from /tmp/h.rb:14:in `<main>'
    /tmp/h.rb:10:in `each_value': no implicit conversion from nil to integer (TypeError)
    	from /tmp/h.rb:10:in `block (3 levels) in <main>'
    	from /tmp/h.rb:9:in `times'
    	from /tmp/h.rb:9:in `block (2 levels) in <main>'
2021-08-26 13:29:58 +09:00
git
27410eaeb2 * 2021-08-26 [ci skip] 2021-08-26 10:24:21 +09:00