summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-11-12[ruby/date] Numeric already includes ComparableAkira Matsuda
https://github.com/ruby/date/commit/f6140df0ad
2020-11-12[ruby/date] Updated timezones from timeanddate.comNobuyoshi Nakada
https://github.com/ruby/date/commit/f08175e34d
2020-11-12[ruby/date] Honor timezones from timeanddate.comNobuyoshi Nakada
https://github.com/ruby/date/commit/d20380fc55
2020-11-12[ruby/date] Fixed the script file name to update zonetab.listNobuyoshi Nakada
https://github.com/ruby/date/commit/3c002b1daa
2020-11-12[ruby/date] [DOC] declate DateTime class is deprecatedNARUSE, Yui
https://github.com/ruby/date/commit/58ca6e6a3e
2020-11-12Backport cosmetic changes from upstream repo that is ruby/rdocHiroshi SHIBATA
2020-11-12Fixed typoHiroshi SHIBATA
2020-11-12strip trailing spaces and adjusted indents [ci skip]Nobuyoshi Nakada
2020-11-12* 2020-11-12 [ci skip]git
2020-11-12array.rb: Remove unnecessary phrase from rdocYusuke Endoh
A fix to 54fb8fb62a30c7b60ab6443a62821f6f8bc479c4
2020-11-12array.rb: show examples whether `Array#shuffle!` has side effect or notYusuke Endoh
Partially revert 54fb8fb62a30c7b60ab6443a62821f6f8bc479c4
2020-11-11remove Ractor#closeKoichi Sasada
close_incoming by antoher ractor means there is no other messages will be sent to the ractor, so Ractor.receive will block forever, and it should raise and stop. close_outgoing by antoher ractor means, ... I don't have good idea to use it. It can be a private method. Ractor#close calls both, but it does not make sense to call different purpose methods, so I remove it. Notes: Merged: https://github.com/ruby/ruby/pull/3759
2020-11-11ignore yield_atexit if outgoing port is closedKoichi Sasada
If outgoing_port is closed, Ractor.yield never successes. [Bug #17310] Notes: Merged: https://github.com/ruby/ruby/pull/3755
2020-11-11Threads in a ractor will be killed with the ractorKoichi Sasada
If a terminating ractor has child threads, then kill all child threads. Notes: Merged: https://github.com/ruby/ruby/pull/3754
2020-11-11introduce USE_VM_CLOCK for windows.Koichi Sasada
The timer function used on windows system set timer interrupt flag of current main ractor's executing ec and thread can detect the end of time slice. However, to set all ec->interrupt_flag for all running ractors, it is requires to synchronize with other ractors. However, timer thread can not acquire the ractor-wide lock because of some limitation. To solve this issue, this patch introduces USE_VM_CLOCK compile option to introduce rb_vm_t::clock. This clock will be incremented by the timer thread and each thread can check the incrementing by comparison with previous checked clock. At last, on windows platform this patch introduces some overhead, but I think there is no critical performance issue because of this modification. Notes: Merged: https://github.com/ruby/ruby/pull/3754
2020-11-11Use Fiddle::Importer directlyHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/3712
2020-11-11Removed win32/resolv.rb for 32bit envHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/3712
2020-11-11Removed win32apiHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/3712
2020-11-11* 2020-11-11 [ci skip]git
2020-11-10Fix some typos in NEWS.md.Fabio Sangiovanni
Notes: Merged: https://github.com/ruby/ruby/pull/3756
2020-11-10[ruby/racc] Bump version to 1.5.1Hiroshi SHIBATA
https://github.com/ruby/racc/commit/2cb3055a73
2020-11-10[ruby/racc] skip the failing test with JRubyHiroshi SHIBATA
https://github.com/ruby/racc/commit/cf37713895
2020-11-10[ruby/racc] Use the Ruby license. Fix #134Hiroshi SHIBATA
https://github.com/ruby/racc/commit/7c881cd548
2020-11-10Use fiddle (win32/importer) instead of Win32APINAKAMURA Usaku
- ext/win32/lib/win32/sspi.rb: Use fiddle (win32/importer) instead of Win32API
2020-11-10Complex and Rational is embedded classes nowHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/3753
2020-11-10Removed canonicalization for mathnNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/3691
2020-11-10Fix linksS-H-GAMELINKS
Notes: Merged: https://github.com/ruby/ruby/pull/3738
2020-11-10refactoring.Koichi Sasada
iv_index_tbl_newsize() usually returns iv_index_tbl->num_entries because ivup->iv_extended is usually false.
2020-11-10lib/racc/statetransitiontable.rb: Make the racc output stableYusuke Endoh
Racc calls `Array#sort!` to build a state transition table. As `Array#sort!` is not a stable sort, the output may differ depending upon the environment. This changeset makes the sort stable manually, and updates all expectation files. Notes: Merged: https://github.com/ruby/ruby/pull/3749
2020-11-09Add a benchmark for polymorphic ivar settingAaron Patterson
This benchmark demonstrates the performance of setting an instance variable when the type of object is constantly changing. This benchmark should give us an idea of the performance of ivar setting in a polymorphic environment Notes: Merged: https://github.com/ruby/ruby/pull/3750
2020-11-09Add debug counter for ivar inline cache misses that could hitAaron Patterson
This commit adds a debug counter for the case where the inline cache *missed* but the ivar index table has an entry for that ivar. This is a case where a polymorphic cache could help Notes: Merged: https://github.com/ruby/ruby/pull/3750
2020-11-09Avoid slow path ivar settingAaron Patterson
If the ivar index table exists, we can avoid the slowest path for setting ivars. Notes: Merged: https://github.com/ruby/ruby/pull/3750
2020-11-09Fix excessive GC rootingAlan Wu
rb_vm_add_root_module() is enough to make sure the object become a GC root. Notes: Merged: https://github.com/ruby/ruby/pull/3741
2020-11-09rb_vm_add_root_module(): Remove unused parameterAlan Wu
Notes: Merged: https://github.com/ruby/ruby/pull/3741
2020-11-10* 2020-11-10 [ci skip]git
2020-11-09remove unused debug counterAaron Patterson
Notes: Merged: https://github.com/ruby/ruby/pull/3740
2020-11-09Update vm_insnhelper.cAaron Patterson
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com> Notes: Merged: https://github.com/ruby/ruby/pull/3740
2020-11-09Remove iv table size checkAaron Patterson
iv tables cannot shrink. If the inline cache was ever set, then there must be an entry for the instance variable in the iv table. Just set the iv list on the object to be equal to the iv index table size, then set the iv. Notes: Merged: https://github.com/ruby/ruby/pull/3740
2020-11-09eagerly initialize ivar table when index is small enoughAaron Patterson
When the inline cache is written, the iv table will contain an entry for the instance variable. If we get an inline cache hit, then we know the iv table must contain a value for the index written to the inline cache. If the index in the inline cache is larger than the list on the object, but *smaller* than the iv index table on the class, then we can just eagerly allocate the iv list to be the same size as the iv index table. This avoids duplicate work of checking frozen as well as looking up the index for the particular instance variable name. Notes: Merged: https://github.com/ruby/ruby/pull/3740
2020-11-09`fe80` should be case insensitive tooKazuhiro NISHIYAMA
2020-11-09Removed needless require for 'enumerator'Hiroshi SHIBATA
2020-11-09* 2020-11-09 [ci skip]git
2020-11-08Fix TestFiberMutex#test_condition_variable assertionBenoit Daloze
* Now that it works correctly.
2020-11-08test/resolv/test_dns.rb: suppress "assigned but unused variable"Yusuke Endoh
2020-11-07Support s390 IPv6 link local addressesJeremy Evans
2020-11-08Urgent notification pipe has same lifetime as scheduler.Samuel Williams
Notes: Merged: https://github.com/ruby/ruby/pull/3743
2020-11-08Defer `kernel_sleep` to `block` to avoid exiting the event loop when ↵Samuel Williams
duration is nil. Notes: Merged: https://github.com/ruby/ruby/pull/3743
2020-11-08Tidy up book keeping for `thread->keeping_mutexes`.Samuel Williams
When a scheduler is present, it's entirely possible for `th->keeping_mutexes` to be updated while enumerating the waitq. Therefore it must be fetched only during the removal operation. Notes: Merged: https://github.com/ruby/ruby/pull/3743
2020-11-08Don't try to resume blocked fiber on dead thread.Samuel Williams
Notes: Merged: https://github.com/ruby/ruby/pull/3743
2020-11-08`Fiber.new(blocking: false)` is now the default.Samuel Williams
Notes: Merged: https://github.com/ruby/ruby/pull/3743