AgeCommit message (Collapse)Author
2021-05-17[ruby/psych] Fix symabolize_name with non-string keysJean Boussier
2021-05-17[ruby/psych] feat: allow scalars and sequences to be styled when dumpedJeremy Ebler mention lib/objspace/trace.rb [Feature #17762]Yusuke Endoh
2021-05-17* 2021-05-17 [ci skip]git
2021-05-17[Win32] long path name support [Bug #12551]Gabriel Nagy
Implement long path support on Windows by applying Microsoft's recommended application manifest. To make this work on both Visual C++ and MinGW, include the manifest as a resource when generating the resource files. This way it will be embedded into the executables generated by both compilers. It's important for the manifest resource to have ID 1, otherwise GCC will embed a default manifest. Note that in addition to this, the user needs to have [long paths enabled] either by modifying the registry or by enabling a group policy. [long paths enabled]: Co-authored-by: Nobuyoshi Nakada <> Notes: Merged: Merged-By: nobu <>
2021-05-16PAGE_SIZE is never used on msys/mingwNobuyoshi Nakada
2021-05-16* 2021-05-16 [ci skip]git
2021-05-16Fix a typo [ci skip]Kazuhiro NISHIYAMA
2021-05-15* 2021-05-15 [ci skip]git
2021-05-15[ruby/irb] IRB should use the latest Reline, 0.2.5aycabta
2021-05-14tool/lib/minitest/mock.rb: define Object#stub only when not definedYusuke Endoh
Recently, lib/rubygems/test_case.rb also defines the method.
2021-05-14test/objspace/test_objspace.rb: check stderr before stdoutYusuke Endoh
When `require "objspace/trace"` fails, previously the failure says: ``` 1) Failure: TestObjSpace#test_objspace_trace [/tmp/ruby/v3/src/trunk-mjit/test/objspace/test_objspace.rb:621]: <3> expected but was <0>. ``` but this is hard to debug.
2021-05-14test/ruby/test_refinement.rb: prevent "assigned but unused variable"Yusuke Endoh
2021-05-14ext/objspace/lib/objspace/trace.rb: Remove the original Kernel#pYusuke Endoh
... to disable a "method redefined" warning. ``` 1) Failure: TestObjSpace#test_objspace_trace [/export/home/chkbuild/chkbuild-gcc/tmp/build/20210514T050008Z/ruby/test/objspace/test_objspace.rb:621]: <["objspace/trace is enabled"]> expected but was <["/export/home/chkbuild/chkbuild-gcc/tmp/build/20210514T050008Z/ruby/.ext/common/objspace/trace.rb:29: warning: method redefined; discarding old p", "objspace/trace is enabled"]>. ```
2021-05-14ext/objspace/lib/objspace/trace.rb: AddedYusuke Endoh
This file, when require'ed, starts tracing the object allocations, and redefines `Kernel#p` to show the allocation site. This commit is experimental; the library name and APIs may change. [Feature #17762]
2021-05-14Refix PAGE_SIZENobuyoshi Nakada
* honor actually used headers * include sys/user.h only when `PAGE_SIZE` is not defined
2021-05-14Make USE_MMAP_ALIGNED_ALLOC static constNobuyoshi Nakada
2021-05-13What's Here for BasicObject (#4499)Burdette Lamar
* What's Here for BasicObject Notes: Merged-By: BurdetteLamar <>
2021-05-13What's Here for Kernel (#4488)Burdette Lamar
Notes: Merged-By: BurdetteLamar <>
2021-05-14* 2021-05-14 [ci skip]git
2021-05-13Fix compilation with jemalloc on macosJohn Hawthorn
On darwin we avoid including sys/user.h to avoid a conflict. Previously we still ended up with PAGE_SIZE being defined because the headers for system malloc define it. However, when compiling with jemalloc nothing would define PAGE_SIZE. This commit changes so that we never use the PAGE_SIZE constant on darwin and to always use the sysconf fallback. Notes: Merged:
2021-05-13skip rb_bug for inconsistent zombies countKoichi Sasada
It seems a bug but it takes more time to debug. To stop CI failures, skip this rb_bug on `RGENGC_CHECK_MODE=2` temporarily.
2021-05-13Also `\U` after control/meta is invalid [Bug #17861]Nobuyoshi Nakada
As well as `\u`, `\U` should be invalid there too. And highlight including `u`/`U` not only the backslash before it.
2021-05-12Avoid improper optimization of case statements mixed integer/rational/complexJeremy Evans
Fixes [Bug #17857] Notes: Merged:
2021-05-12Fix handling of control/meta escapes in literal regexpsJeremy Evans
Ruby uses a recursive algorithm for handling control/meta escapes in strings (read_escape). However, the equivalent code for regexps (tokadd_escape) in did not use a recursive algorithm. Due to this, Handling of control/meta escapes in regexp did not have the same behavior as in strings, leading to behavior such as the following returning nil: ```ruby /\c\xFF/ =~ "\c\xFF" ``` Switch the code for handling \c, \C and \M in literal regexps to use the same code as for strings (read_escape), to keep behavior consistent between the two. Fixes [Bug #14367] Notes: Merged:
2021-05-13[rubygems/rubygems] Use `Time.stub :now` to avoid a random failureYusuke Endoh
Essentially this reverts 45464bfcbdf9f9cfb440950bc57a27d237627a17. The commit removed a mock of, which caused a random failure. ``` 1) Failure: TestGemPackageTarWriter#test_add_file_signer [/home/chkbuild/chkbuild/tmp/build/20210512T123004Z/ruby/test/rubygems/test_gem_package_tar_writer.rb:117]: Field mtime of the tar header differs.. <"14046746312\u0000"> expected but was <"14046746311\x00">. ``` Object#stub is defined at f1af59fe02ef2cc58f13e2742e4cc6cf8c2a1a20, so now `Time.stub :now` works.
2021-05-13* 2021-05-13 [ci skip]git
2021-05-13parse.y: Allow "command" syntax in endless method definitionYusuke Endoh
This change allows `def hello = puts "Hello"` without parentheses. Note that `private def hello = puts "Hello"` does not parse for technical reason. [Feature #17398]
2021-05-12* remove trailing spaces. [ci skip]git
2021-05-12Use another class for the comparison.Koichi Sasada
`memsize_of(` can be changed with past ivar creation history for Object instances (another Object instance has 4 or more ivars, next created Object instance has the area for the ivars). So use antoher class for the comparison.
2021-05-12Use assert_raise instead of assert_raisesHiroshi SHIBATA
Notes: Merged:
2021-05-12Revert 924ce2c5ba4d1c1dc781a6a06682204d358421bbHiroshi SHIBATA
Because test-unit didn't provide the benchmark test. And This test is fragile with the several environments. Notes: Merged:
2021-05-12[rubygems/rubygems] Added begin-end block for java platformHiroshi SHIBATA
Because pend of test-unit raises exception. Notes: Merged:
2021-05-12[rubygems/rubygems] Update the link of minitest code with the commit hash.Hiroshi SHIBATA Notes: Merged:
2021-05-12[rubygems/rubygems] Removed the related code for minitest-bisectHiroshi SHIBATA Notes: Merged:
2021-05-12[rubygems/rubygems] Fixed an intentional blank-lineHiroshi SHIBATA Notes: Merged:
2021-05-12[rubygems/rubygems] Added comment for Minitest::MockHiroshi SHIBATA Notes: Merged:
2021-05-12[rubygems/rubygems] Replace skip to pendHiroshi SHIBATA Notes: Merged:
2021-05-12[rubygems/rubygems] util/rubocop -aHiroshi SHIBATA Notes: Merged:
2021-05-12[rubygems/rubygems] Don't use Minitest::MockHiroshi SHIBATA Notes: Merged:
2021-05-12[rubygems/rubygems] Removed minitest/mock from ↵Hiroshi SHIBATA
test/rubygems/test_gem_remote_fetcher.rb Notes: Merged:
2021-05-12[rubygems/rubygems] Removed minitest/mock from test_gem_package_tar_writer.rbHiroshi SHIBATA Notes: Merged:
2021-05-12[rubygems/rubygems] capture_output will return empty string, not nilHiroshi SHIBATA Notes: Merged:
2021-05-12[rubygems/rubygems] Fixed variable scope at test_silent_systemHiroshi SHIBATA Notes: Merged:
2021-05-12[rubygems/rubygems] Import capture_subprocess_io from minitestHiroshi SHIBATA Notes: Merged:
2021-05-12[rubygems/rubygems] Rewrite with capture_outputHiroshi SHIBATA Notes: Merged:
2021-05-12[rubygems/rubygems] Use capture_output instead of capture_ioHiroshi SHIBATA Notes: Merged:
2021-05-12[rubygems/rubygems] Use assert_raise instead of assert_raisesHiroshi SHIBATA Notes: Merged:
2021-05-12[rubygems/rubygems] Use dummy assertion for assert_httpsHiroshi SHIBATA Notes: Merged:
2021-05-12[rubygems/rubygems] Use capture_output instead of assert_silentHiroshi SHIBATA Notes: Merged: