summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-09-18sync ruby_global_symbolsKoichi Sasada
ruby_global_symbols can be accessed with multiple ractors so that the accesses should be synchronized. Notes: Merged: https://github.com/ruby/ruby/pull/3548
2020-09-18show object info to debug purpose.Koichi Sasada
Notes: Merged: https://github.com/ruby/ruby/pull/3548
2020-09-18add debug log on enabling multi-ractor modeKoichi Sasada
Notes: Merged: https://github.com/ruby/ruby/pull/3548
2020-09-18rb_obj_info() shows more info for T_SYMBOLKoichi Sasada
Notes: Merged: https://github.com/ruby/ruby/pull/3548
2020-09-18sync fstring_table for deletionKoichi Sasada
Ractors can access this table simultaneously so we need to sync accesses. Notes: Merged: https://github.com/ruby/ruby/pull/3548
2020-09-18* 2020-09-18 [ci skip]git
2020-09-17Cleanup commented codeBenoit Daloze
* Mutex operations no longer disable the Fiber scheduler.
2020-09-17Add missing goto found;Benoit Daloze
* To still remove the lock from the Thread's list of acquired locks. * Also to not wake up other waiters and preserve blocking behavior.
2020-09-17Fix Mutex#unlock with a scheduler and thread contentionBenoit Daloze
* It would hit "[BUG] unexpected THREAD_STOPPED" before.
2020-09-17Document the various scheduler hooksBenoit Daloze
2020-09-17Call scheduler.block instead of scheduler.kernel_sleep for blocking ↵Benoit Daloze
Queue/SizedQueue operations * scheduler.unblock was already already called before but with no corresponding scheduler.block * add test that Queue#pop makes the scheduler wait until it gets an element.
2020-09-17Rename scheduler.{mutex_lock,mutex_unlock} to {block,unblock}Benoit Daloze
* Move #kernel_sleep next to #block as it is similar
2020-09-17Use a similar pattern for waiting and readyBenoit Daloze
2020-09-17Fix typos [ci skip]Kazuhiro NISHIYAMA
s/overriden/overridden/
2020-09-17Sort links in NEWS.md by URI [ci skip]Kazuhiro NISHIYAMA
2020-09-17Update to ruby/spec@e829fb0Benoit Daloze
2020-09-17Add NEWS entry for [Feature #16792]Benoit Daloze
2020-09-17* 2020-09-17 [ci skip]git
2020-09-16Warn on a finalizer that captures the object to be finalizedChris Seaton
Also improve specs and documentation for finalizers and more clearly recommend a safe code pattern to use them. Notes: Merged: https://github.com/ruby/ruby/pull/3444
2020-09-17Prefer to use `prep_io` for temporary IO instances.Samuel Williams
Notes: Merged: https://github.com/ruby/ruby/pull/3550
2020-09-16Fix assertion failed in Complex.polar without NDEBUG (#3551)Kenta Murata
Fixes [Bug #17172]. Notes: Merged-By: mrkn <mrkn@ruby-lang.org>
2020-09-16Add a note at the top of the test schedulerBenoit Daloze
2020-09-16RUBY_ISEQ_DUMP_DEBUG=to_binary never kept the debug information for String ↵Benoit Daloze
literals * That is, for plain string literals, not interpolated. * The test below is very similar and uses the same check.
2020-09-16Revert "skip on RUBY_ISEQ_DUMP_DEBUG=to_binary"Benoit Daloze
This reverts commit 889bbbaf527372c5cc229b56dca9a2322e325f26.
2020-09-16skip on RUBY_ISEQ_DUMP_DEBUG=to_binaryKoichi Sasada
9b535f3ff7 does not support ISeq#to_binary. To make CI green, skip this test temporarily. Please fix this issue and revert this patch.
2020-09-16Use build_message on test_securerandom.rb (#3543)Hiroshi SHIBATA
* Revert "Revert "[ruby/securerandom] Use build_message instead of message for test-unit"" * [ruby/securerandom] Fixed the wrong usage of build_message Notes: Merged-By: hsbt <hsbt@ruby-lang.org>
2020-09-152.8 -> 3.0 in specsBenoit Daloze
2020-09-15Interpolated strings are no longer frozen with frozen-string-literal: trueBenoit Daloze
* Remove freezestring instruction since this was the only usage for it. * [Feature #17104] Notes: Merged: https://github.com/ruby/ruby/pull/3488
2020-09-15Parse ObjectSpace.dump_all / dump arguments in Ruby to avoid allocation noiseJean Boussier
[Feature #17045] ObjectSpace.dump_all should allocate as little as possible in the GC heap Up until this commit ObjectSpace.dump_all allocates two Hash because of `rb_scan_args`. It also can allocate a `File` because of `rb_io_get_write_io`. These allocations are problematic because `dump_all` dumps the Ruby heap, so it should try modify as little as possible what it is observing. Notes: Merged: https://github.com/ruby/ruby/pull/3530
2020-09-16* 2020-09-16 [ci skip]git
2020-09-15pointers on the stack need to be pinnedAaron Patterson
Notes: Merged: https://github.com/ruby/ruby/pull/3544
2020-09-15Revert "[ruby/securerandom] Use build_message instead of message for test-unit"Hiroshi SHIBATA
This reverts commit 7f9f5f5723cd723dee578b0681066c8393ee45d0.
2020-09-15[ruby/uri] Remove deprecated URI.escape/URI.unescapeJeremy Evans
https://github.com/ruby/uri/commit/61c6a47ebf
2020-09-15[ruby/securerandom] Use build_message instead of message for test-unitHiroshi SHIBATA
https://github.com/ruby/securerandom/commit/826b877e83
2020-09-15[ruby/fileutils] Reduce iteration through list for `:mkdir_p`Ashwin Maroli
By calling the instruction to `list.map` within `list.each` itself. https://github.com/ruby/fileutils/commit/e690eec937
2020-09-15Fix handling of FMODE_PREP.Samuel Williams
Notes: Merged: https://github.com/ruby/ruby/pull/3542
2020-09-15Fix incorrect initialization of `rb_io_t::self`.Samuel Williams
Notes: Merged: https://github.com/ruby/ruby/pull/3542
2020-09-15Fix `warning: instance variable bt_locations not initialized`Kazuhiro NISHIYAMA
2020-09-15Fix missing `"` [ci skip]Kazuhiro NISHIYAMA
2020-09-15Add IRB and Reline update for NEWS of 3.0.0-preview1aycabta
Notes: Merged: https://github.com/ruby/ruby/pull/3540
2020-09-14[ruby/ostruct] Fix dup/cloneMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3541
2020-09-14[ruby/ostruct] method_missing is privateMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3541
2020-09-14[ruby/ostruct] Avoid self calling our public methods.Marc-Andre Lafortune
Found because `json` has a bad example in its test suite. This implementation still offers better encapsulation. Notes: Merged: https://github.com/ruby/ruby/pull/3541
2020-09-14[ruby/ostruct] Reinstate recent changesMarc-Andre Lafortune
This reverts commit 28e60b0045b5732bca11012d81a5223001faa6b2. Notes: Merged: https://github.com/ruby/ruby/pull/3541
2020-09-14Optimize Pathname#relative? / absolute?Marc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/2107
2020-09-14[ruby/ostruct] Revert recent changesMarc-Andre Lafortune
This reverts commit e026e186f4..12a2e32d43.
2020-09-14[ruby/rdoc] Prefer require_relativeMarc-Andre Lafortune
2020-09-14[ruby/ostruct] Add access to public instance methods in case they are overridenMarc-Andre Lafortune
2020-09-14[ruby/ostruct] Tweak docMarc-Andre Lafortune
2020-09-14[ruby/ostruct] Allow overriding public methodsMarc-Andre Lafortune
[Fixes https://bugs.ruby-lang.org/issues/15409]