summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-05-11Improve documentation on contributing to RubyJemma Issroff
co-authored-by: Peter Zhu <peter@peterzhu.ca> co-authored-by: Stan Lo <stan001212@gmail.com> Notes: Merged: https://github.com/ruby/ruby/pull/5899
2022-05-11[ruby/fileutils] Enhanced RDoc for FileUtilsBurdetteLamar
https://github.com/ruby/fileutils/commit/c38fd02372
2022-05-11[ruby/fileutils] Enhanced RDoc for FileUtilsBurdetteLamar
https://github.com/ruby/fileutils/commit/7b60f2d63b
2022-05-11* 2022-05-11 [ci skip]git
2022-05-11[rubygems/rubygems] Fix error message on metadata mismatchesDavid Rodríguez
Previously we were removing not installable specs. However, if those are the only ones, that would result in a bad error message. If we still choose them as a last resort, Bundler will later check metadata right before installing a give a proper error. This is a regression of https://github.com/rubygems/rubygems/commit/565549260be5 and the fix is to revert that commit. https://github.com/rubygems/rubygems/commit/bc18912257
2022-05-11[rubygems/rubygems] Tweak negative expectationsDavid Rodríguez
The follow a tweak on the yank message. https://github.com/rubygems/rubygems/commit/f6817bfe58
2022-05-11[rubygems/rubygems] Extract a `next_ruby_minor` helper method for specsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/66eae0ef1d
2022-05-10Write have instead of have have [ci skipKaíque Kandy Koga
Notes: Merged: https://github.com/ruby/ruby/pull/5897 Merged-By: nobu <nobu@ruby-lang.org>
2022-05-10Fix the order of assert_eqaul and remove unused variablesNobuyoshi Nakada
2022-05-10Honor --with-thread option to enable pthreadNobuyoshi Nakada
2022-05-10* 2022-05-10 [ci skip]git
2022-05-10[ruby/psych] tr is typically 4 to 5 times faster than gsubMSP-Greg
https://github.com/ruby/psych/commit/8533be8fe7
2022-05-09Don't allocate new page on finish sweepingPeter Zhu
We don't need to allocate a new page in gc_sweep_finish_size_pool. It can be allocated when needed. Notes: Merged: https://github.com/ruby/ruby/pull/5885
2022-05-09Fix heap_extend_pages when total_slots is 0Peter Zhu
Some size pools may not have any pages/slots, so total_slots is 0. This causes a divide-by-zero in the calculation. This commit adds a special case to catch the case when total_slots is 0 and returns the number of pages for heap_init_slots. Notes: Merged: https://github.com/ruby/ruby/pull/5885
2022-05-09Grow size pools with no or few slotsPeter Zhu
If the size pool has no or few pages/slots, then min_free_slots will be a very small number (or even 0). Then the heap won't be eligible to grow, causing GC thrashing or infinite loops. Notes: Merged: https://github.com/ruby/ruby/pull/5885
2022-05-09Call gc_sweep_finish_size_pool on size pools with no pagesPeter Zhu
Size pools with no pages won't be swept so gc_sweep_finish_size_pool will never be called on it, but gc_sweep_finish_size_pool must be called to grow the size pool. Notes: Merged: https://github.com/ruby/ruby/pull/5885
2022-05-09Fix gc_page_sweep when last bitmap plane is not usedPeter Zhu
Depending on alignment, the last bitmap plane may not used. Then it will appear as if all of the objects on that plane is unmarked, which will cause a buffer overrun when we try to free the object. This commit changes the loop to calculate the number of planes used (bitmap_plane_count). Notes: Merged: https://github.com/ruby/ruby/pull/5885
2022-05-09Increase SIZE_POOL_COUNT to 5Peter Zhu
Having more size pools will allow us to allocate larger objects through Variable Width Allocation. I have attached some benchmark results below. Discourse: On Discourse, we don't see much change in response times. We do see a small reduction in RSS. Branch RSS: 377.8 MB Master RSS: 396.3 MB railsbench: On railsbench, we don't see a big change in RPS or p99 performance. We see a small increase in RSS. Branch RPS: 815.38 Master RPS: 811.73 Branch p99: 1.69 ms Master p99: 1.68 ms Branch RSS: 90.6 MB Master RSS: 89.4 MB liquid: We don't see a significant change in liquid performance. Branch parse & render: 29.041 I/s Master parse & render: 29.211 I/s Notes: Merged: https://github.com/ruby/ruby/pull/5885
2022-05-09[rubygems/rubygems] Cleanup old legacy codeDavid Rodríguez
https://github.com/rubygems/rubygems/commit/531d6b5fee
2022-05-09Update default gems list at ecf32dbfc03c39a75fdd8a4e4dc3cb [ci skip]git
2022-05-09[ruby/net-http] Bump version to 0.2.2Hiroshi SHIBATA
https://github.com/ruby/net-http/commit/992d07cb41
2022-05-09Update default gems list at a370eb5a6360a789b7c5249d97169f [ci skip]git
2022-05-09[ruby/io-wait] bump up to 0.2.3Hiroshi SHIBATA
https://github.com/ruby/io-wait/commit/f59d1d12e0
2022-05-09Update default gems list at 30632efeaad6f5837102ff4229777e [ci skip]git
2022-05-09[ruby/stringio] bump up to 3.0.3Sutou Kouhei
https://github.com/ruby/stringio/commit/64f225bf00
2022-05-09Update default gems list at fbbe7ac7e3256e78d01e0b92d74611 [ci skip]git
2022-05-09[ruby/stringio] Bump versionSutou Kouhei
https://github.com/ruby/stringio/commit/b79152d08f
2022-05-09Add basic binary operators (and, or, xor, not) to `IO::Buffer`. (#5893)Samuel Williams
Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2022-05-09test/fiber/test_scheduler.rb: Remove the test file from $LOADED_FEATURESYusuke Endoh
to prevent the following failure on `make test-all --repeat-count=2` http://ci.rvm.jp/results/trunk-repeat20-asserts@phosphorus-docker/3957774 ``` 1) Error: TestFiberScheduler#test_autoload: NameError: uninitialized constant TestFiberSchedulerAutoload Object.const_get(:TestFiberSchedulerAutoload) ^^^^^^^^^^ ```
2022-05-09Fix rdoc of IO::Buffer [ci skip]Kazuhiro NISHIYAMA
2022-05-09Explicit handling of frozen strings in `IO::Buffer#for`. (#5892)Samuel Williams
Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2022-05-09Ignore rubyspec_temp fot GitHiroshi SHIBATA
2022-05-09[ruby/getoptlong] Fixup https://github.com/ruby/getoptlong/commit/39faa7b390f0Hiroshi SHIBATA
https://github.com/ruby/getoptlong/commit/c8b3c0c00d
2022-05-09* 2022-05-09 [ci skip]git
2022-05-09[ruby/getoptlong] ruby/ruby used sample, not examplesHiroshi SHIBATA
https://github.com/ruby/getoptlong/commit/39faa7b390
2022-05-08Update bundled gems list at 25eb63fa7fa7075764cd71920eb89d [ci skip]git
2022-05-08Bundle RBS 2.4.0 (#5894)Soutaro Matsumoto
Notes: Merged-By: soutaro <matsumoto@soutaro.com>
2022-05-08* 2022-05-08 [ci skip]git
2022-05-08Use a proper mutex for autoloading features. (#5788)Samuel Williams
Object#autoload implements a custom per-thread "mutex" for blocking threads waiting on autoloading a feature. This causes problems when used with the fiber scheduler. We swap the implementation to use a Ruby mutex which is fiber aware. Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2022-05-07* 2022-05-07 [ci skip]git
2022-05-07Replace with https://github.com [ci skip]Kazuhiro NISHIYAMA
2022-05-06Fix missing paren [ci skip]Kazuhiro NISHIYAMA
2022-05-06[rubygems/rubygems] Fix typo in documentationDominik Bauernfeind
https://github.com/rubygems/rubygems/commit/800a973e00
2022-05-06[rubygems/rubygems] Update man page for `require` option in `bundle add` commandnobuyo
https://github.com/rubygems/rubygems/commit/08a0a5b7d1
2022-05-05Mark RCLASS_INCLUDERAlan Wu
Since 4d8f76286beefbb8f7fba2479f6d0a0b4a47304c, we need to dereference the includer field on iclasses, so we need to mark it to make sure it's alive. Sometimes during compaction we crash because the field is dangling, though I have a hard time constructing such a situation. See http://ci.rvm.jp/results/trunk@ruby-iga/3947725 Notes: Merged: https://github.com/ruby/ruby/pull/5890
2022-05-05Fix potential GC issue while iterating over weak refsAlan Wu
While walking over the list of subclasses for `include` and friends, we check whether the subclass is a garbage object. After the check, we allocate objects which might trigger GC and make the subclass garbage, even though before the allocation the subclass was not garbage. This is a sort of time-of-check-time-of-use issue. Fix this by saving the weak reference to a local variable, upgrading it to a strong reference while we do the allocation. It makes the code look slightly nicer even if it doesn't fix any runtime issues. Notes: Merged: https://github.com/ruby/ruby/pull/5890
2022-05-06* 2022-05-06 [ci skip]git
2022-05-05File rdoc (#5888)Burdette Lamar
Treats: ::pipe? ::symlink? ::socket? ::blockdev? ::chardev? Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-05-05Link from printf methods to format spec doc (#5886)Burdette Lamar
Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-05-05[ruby/logger] Prefer String#[0, 1] over [0..0]Akira Matsuda
[0..0] internally creates an extra Array object, and so is slower and much more memory consuming https://github.com/ruby/logger/commit/20616ad34a