Граф коммитов

55460 Коммитов

Автор SHA1 Сообщение Дата
Kazuhiro NISHIYAMA 54d5b599e8
Fix typos [ci skip] 2019-05-24 14:32:30 +09:00
Kazuhiro NISHIYAMA 2541578096
Add leaked-globals to .travis.yml 2019-05-24 14:32:29 +09:00
Nobuyoshi Nakada 491d2b8063
Removed symlinks by in-place build [Bug #15870] 2019-05-24 14:25:46 +09:00
Nobuyoshi Nakada 14778125b1
Removed and ignore symlinks by in-place build [Bug #15870] 2019-05-24 14:24:38 +09:00
Martin Dürst e713c2bde8 switch UNICODE_BETA to NO
Unicode version 12.1.0 was officially released on May 7th, 2019.
There were no changes at all from the "real" beta published shortly
after the new era name "Reiwa" was announced. So we can switch
UNICODE_BETA back to NO.

common.mk: switch UNICODE_BETA back to NO
tool/downloader.rb: add additional conditions to avoid an error
                    when moving from beta to final
2019-05-24 14:12:06 +09:00
Nobuyoshi Nakada 35caedc828
--autostash is since Git 2.6 [Bug #15871] 2019-05-24 14:11:00 +09:00
Nobuyoshi Nakada dfc21a0467
Ignore generated files by in-place build [Bug #15870] 2019-05-24 12:23:26 +09:00
Nobuyoshi Nakada 7f2f56b2f5
Define GITPULLOPTION to rebase [Bug #15871] 2019-05-24 12:22:17 +09:00
Yusuke Endoh 50e993d4e3 Skip the Process.clock_getres spec on AIX
https://rubyci.org/logs/rubyci.s3.amazonaws.com/aix71_ppc/ruby-trunk/log/20190522T103301Z.fail.html.gz
2019-05-24 12:17:05 +09:00
Yusuke Endoh 498113d5d3 test/ruby/test_gc.rb (test_gc_stress_at_startup): extend time timeout
It fails on some CI environments.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian8/ruby-trunk/log/20190524T003006Z.fail.html.gz
https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11s/ruby-trunk/log/20190523T002505Z.fail.html.gz
2019-05-24 11:20:12 +09:00
Takashi Kokubun 1ee1e8fccd
Test GC.compact with MJIT again 2019-05-23 09:03:34 -07:00
git dde8ceaf70 * 2019-05-24 2019-05-24 00:42:54 +09:00
Takashi Kokubun 187ef00a41
wercker.yml: Commit MJIT debug logs to another repository
because too-large Wercker output is truncated.

ruby/mjit-debug is a private repository for now, because the person
fixing it is likely to be me or another committer.
2019-05-23 08:41:19 -07:00
Takashi Kokubun 4fe908c164
gc.c: Try pausing MJIT worker during GC.verify_compaction_references
for debugging
http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2048247
2019-05-23 07:53:42 -07:00
Yusuke Endoh c04ef141d2 enum.c (enum_tally): better example in rdoc 2019-05-23 23:35:26 +09:00
Nobuyoshi Nakada e72769ef81
Enumerable#filter_map in NEWS 2019-05-23 23:24:22 +09:00
Nobuyoshi Nakada ccb1652929
New Time methods in NEWS 2019-05-23 22:47:55 +09:00
git 0b4d51b055 * expand tabs. 2019-05-23 22:39:54 +09:00
manga_osyo f5415a95ce
Add `Time#ceil`.
Closes: https://github.com/ruby/ruby/pull/2133
2019-05-23 22:30:19 +09:00
Nobuyoshi Nakada fe3ff5afb0
Suppress paranoid warnings for external/3rd-party libraries
[Feature #15665]
2019-05-23 17:36:26 +09:00
Koichi Sasada dc95b57a68 add verifier before compact 2019-05-23 17:31:14 +09:00
Urabe, Shyouhei 878a06efec add comments [ci skip]
Also requested by Ko1.
2019-05-23 17:24:53 +09:00
Urabe, Shyouhei 763989c6c5 prefix ASAN related inline functions asan_
requested by Ko1.
2019-05-23 17:24:53 +09:00
Urabe, Shyouhei 8fce83339b disable _FORTIFY_SOURCE
Sanitizers and fortifications do not interface, and there is currently
no plan for them to work together.

See also https://github.com/google/sanitizers/issues/247
2019-05-23 17:24:53 +09:00
Koichi Sasada 6be0ab73c3 gc_pin() doesn't check is_markable_object().
Caller of gc_pin() should check it is a mark-able object.
So gc_pin() doesn't need to check it. With this fix,
we can refactoring around it.
2019-05-23 16:58:21 +09:00
Takashi Kokubun 65637dae30
Test GC.compact on MJIT again 2019-05-23 00:07:16 -07:00
NAKAMURA Usaku c5cbabf8a8
Use colorized IRB on Windows without checking `TERM` 2019-05-23 15:33:40 +09:00
Alfonso Jiménez 0acbdd1ed0
Adding Enumerable#filter_map
[Feature #15323]
Closes: https://github.com/ruby/ruby/pull/2017
2019-05-23 14:39:16 +09:00
Nobuyoshi Nakada 1ccc2eeba0
Pretend to update all Unicode files 2019-05-23 14:18:26 +09:00
Jeremy Evans c05eaa9325 Fix mixed encoding in heredoc
Heredocs are parsed line-by-line, so we need to keep track of the
temporary encoding of the string.  Previously, a heredoc would
only detect mixed encoding errors if they were on the same line,
this changes things so they will be caught on different lines.

Fixes [Bug #15839]
2019-05-22 21:52:20 -07:00
Jeremy Evans f91b1ab33d Skip assertion in readline test if Readline version is 4.3
Previously, the entire method was not run for Readline 4.3, probably
because it was known to fail. Commit
c754e979d3 removed the check for
Readline 4.3.  Other than this one assertion, which also doesn't
work when using Reline, the method runs correctly when using
Readline 4.3.

Fixes [Bug #15853].
2019-05-22 21:32:31 -07:00
Koichi Sasada 4814f17361 skip zombies.
rb_gc() no longer invokes finalizers, so there are T_ZOMBE objects.
2019-05-23 13:21:40 +09:00
Koichi Sasada 02973d3ba8 pin `maybe` pointers.
Objects pointed by "maybe" pointers because of conservative marking
should be pinned down.
2019-05-23 11:42:15 +09:00
Koichi Sasada 136ae55892 Do not kick finalizers on rb_gc().
rb_gc() kicks gc_finalize_deferred(), which invokes finalizers.
This means that any Ruby program can be run this point and
it may be thread switching points and so on.

However, it is difficult to think it invokes any Ruby programs.
For example, `GC.compact` use `rb_gc()` to implement it, howver,
any Ruby program must not be run on this timing.

For this reason (it is difficult to image it run any Ruby program),
I removed `gc_finalize_deferred()` line in rb_gc().

This patch solves GC.compact issue.
[Bug #15809] and re-enable GC.compact test.
2019-05-23 11:26:33 +09:00
Koichi Sasada 0eff21af8d update Array's length correctly.
ARRAY_ASET() does not change the length of array, so
use rb_ary_push() instead of ARRAY_ASET(). It prevents
updating reference on GC.compact.
2019-05-23 11:26:33 +09:00
aycabta bb29ed6e33 C-v C-j means an newline insertion 2019-05-23 08:33:20 +09:00
aycabta da3fabc976 Change behavior to confirm multiline termination
Always checks termination if you press Enter at last line.
2019-05-23 08:25:06 +09:00
Takashi Kokubun c210c68d39
Revert "Revert CI deduplication on Wercker / Azure for debugging"
This reverts commit 1ebe9a2f82.

because it did not help.
2019-05-22 11:14:54 -07:00
Takashi Kokubun 1ebe9a2f82
Revert CI deduplication on Wercker / Azure for debugging
CI seems to have a weired behavior now. Debugging.

Revert "azure-pipelines.yml: Fix typo"

This reverts commit f69d28fbca.

Revert "azure-pipelines.yml: Use simpler trigger syntax"

This reverts commit 709756d897.

Revert "azure-pipelines.yml: Do not run CI on trunk"

This reverts commit bec877b46f.

Revert "appveyor.yml: Do not doubly run CI on trunk"

This reverts commit d9b338a53f.
2019-05-22 10:01:36 -07:00
Yusuke Endoh 00f7e42451 spec/ruby/core/hash/constructor_spec.rb: add "ruby_version_is" guard
follow up for d3f1c615c5
2019-05-23 01:46:21 +09:00
Nobuyoshi Nakada a093c98ddc
Fallback RUBY_FULL_REVISION if not defined 2019-05-23 01:39:43 +09:00
Takashi Kokubun f69d28fbca
azure-pipelines.yml: Fix typo 2019-05-22 09:18:30 -07:00
Takashi Kokubun 709756d897
azure-pipelines.yml: Use simpler trigger syntax 2019-05-22 09:17:26 -07:00
Takashi Kokubun bec877b46f
azure-pipelines.yml: Do not run CI on trunk 2019-05-22 09:13:13 -07:00
Takashi Kokubun b80adde359
wercker.yml: Notify master branch instead of trunk 2019-05-22 09:07:22 -07:00
Yusuke Endoh 9d39eb6b40 range.c (inspect_range): omit beginless "nil"
except the special case `(nil..nil)`.

```
(1..).inspect      #=> "1.."
(..5).inspect      #=> "..5"
(nil..nil).inspect #=> "nil..nil"
```

[Bug #15745]
2019-05-23 00:48:32 +09:00
Takashi Kokubun d9b338a53f
appveyor.yml: Do not doubly run CI on trunk 2019-05-22 08:40:09 -07:00
Takashi Kokubun 277e68825a
.travis.yml: Test master branch instead of trunk 2019-05-22 08:33:44 -07:00
Yusuke Endoh d3f1c615c5 hash.c (rb_hash_s_create): Reject `Hash[[nil]]`
The behavior of `Hash[[nil]] #=> {}` was a bug until 1.9.3, but had been
remained with a warning because some programs depended upon it.
Now, six years passed.  We can remove the compatibility behavior.
[Bug #7300]
2019-05-23 00:19:56 +09:00
git 4d62296948 * 2019-05-23 2019-05-23 00:15:54 +09:00