summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-10-25Use `assert_prism_eval` over `test_prism_eval` in helpereileencodes
When we use `test_prism_eval`, failed tests will point to the line number of the `test_prism_eval` method definition instead of the test that failed. If we use `assert_prism_eval` instead, failed tests will properly poin to the test that failed because the test framework knows to stop the backtrace earlier. Before line number in failure points to helper definition: ``` Prism::TestCompilePrism#test_RegularExpressionNode = 0.21 s 1) Failure: Prism::TestCompilePrism#test_RegularExpressionNode [test/ruby/test_compile_prism.rb:755]: </pit/> (Windows-31J) expected but was </pit/> (US-ASCII). ``` After line number in failure points to test that failed: ``` Prism::TestCompilePrism#test_RegularExpressionNode = 0.00 s 1) Failure: Prism::TestCompilePrism#test_RegularExpressionNode [test/ruby/test_compile_prism.rb:334]: </pit/> (Windows-31J) expected but was </pit/> (US-ASCII). ```
2023-10-25[rubygems/rubygems] Set file path when eval-ing local specification in ↵Samuel Giddins
EndpointSpecification Not strictly necessary, but there is no reason not to be helpful and set the path https://github.com/rubygems/rubygems/commit/894c0303dd
2023-10-25[PRISM] Toggled accepts_no_kwarg to true on NoKeywordsParameterNodeJemma Issroff
2023-10-25[PRISM] Add tests for ParametersNodeJemma Issroff
2023-10-25[PRISM] Implement NoKeywordsParameterNodeJemma Issroff
2023-10-25Try newer 2023-10-18 vcpkg [ci skip]Nobuyoshi Nakada
https://github.com/microsoft/vcpkg/issues/33904 This reverts commit 8f1b688177dba412821cbc01ef2cabdce385f7ba, "Revert vcpkg.exe to previous release [ci skip]".
2023-10-25Removed unused argumentNobuyoshi Nakada
Eventually, `read_escape` does not use `encp`.
2023-10-25Reduce the number of times IO is passed in send_io/recv_io testYusuke Endoh
Since Linux 4.5, sendmsg(2) fails with ETOOMANYREFS if the number of "in-flight" IOs, which has been sent by sendmsg(2) but has not yet accepted by recvmsg(2), exceeds the RLIMIT_NOFILE resource limit. https://rubyci.s3.amazonaws.com/arm64-neoverse-n1/ruby-master/log/20231025T090004Z.fail.html.gz ``` 1) Error: TestSocket_UNIXSocket#test_fd_passing_race_condition: Errno::ETOOMANYREFS: Too many references: cannot splice - sendmsg(2) ``` This change reduces the number of times of IO passing under 1024, which is a default limit in many environments.
2023-10-25Do not use pthread_setaffinity_np on s390xYusuke Endoh
Looks like it randomly causes a segfault https://rubyci.s3.amazonaws.com/rhel_zlinux/ruby-master/log/20231025T093302Z.fail.html.gz ``` [11186/26148] TestNetHTTP_v1_2#test_set_form/home/chkbuild/build/20231025T093302Z/ruby/tool/lib/webrick/httprequest.rb:197: [BUG] Segmentation fault at 0x000003ff1ffff000 ruby 3.3.0dev (2023-10-25T07:50:00Z master 526292d9fe) [s390x-linux] ```
2023-10-25Strip trailing spaces [ci skip]Nobuyoshi Nakada
2023-10-25Fixup 5461bc18f88Hiroshi SHIBATA
2023-10-25LLDB: Use `expression` to save the result into the history [ci skip]Nobuyoshi Nakada
2023-10-25[Doc] Improve documentation of PPOKURA Masafumi
* Remove mention to `require 'pp'` for `pretty_inspect` * Mention the need to add `require 'pp'` to customize `#pretty_print(pp)` method
2023-10-25omit failing test at arm64-neoverse-n1Hiroshi SHIBATA
2023-10-25Add tests for passing nil to Comparable#clamp(min, max)Kouhei Yanagita
2023-10-25[DOC] Add doc for behavior when passing nil to Comparable#clamp(min, max)Kouhei Yanagita
2023-10-25Fix [Bug #19632]: Disable external iterator for frozen enumerator (#7791)Hiroya Fujinami
* Fix [Bug #19632]: Disable external iterator for frozen enumerator Currently, methods to manipulate an external iterator like `#next` and `#feed` can be called even if a receiver of an enumerator is frozen. However, these methods change the state of an external iterator in an enumerator. Therefore, it seems a BUG to me, and these methods should raise FrozenError if the receiver is frozen. This fixed the following methods to raise FrozenError if the receiver is frozen. - `Enumerator#next` - `Enumerator#next_values` - `Enumerator#peek` - `Enumerator#peek_values` - `Enumerator#feed` - `Enumerator#rewind` * Fix a typo in the document Thanks @Maumagnaguagno.
2023-10-25Do not append latest_date to gems/bundled_gems [ci skip]Kazuhiro NISHIYAMA
2023-10-25[rubygems/rubygems] Handle CI configuration on ignore list for ↵Hiroshi SHIBATA
Gem::Specification#files https://github.com/rubygems/rubygems/commit/4bb0ef3e55
2023-10-25Remove unused macroyui-knk
`struct RNode_OP_ASGN22` was removed by 37a783a.
2023-10-25Follow up NODE_OP_ASGN2 structure changeyui-knk
2023-10-24Remove SHAPE_MAX_NUM_IVSAaron Patterson
There is no longer a limit on the number of IVs you can store. SHAPE_MAX_NUM_IVS was used to work around the IV10K problem (the well known problem where setting 10k instance variables in a row would be too slow). The redblack tree works well at any shape depth, even depths greater than 80, and solves the IV10K problem.
2023-10-24Use available constantsAaron Patterson
We don't need to intern "initialize" all the time because we already have `idInitialize` available
2023-10-24`get_next_shape_internal` should always return a shapeAaron Patterson
If it runs out of shapes, or new variations aren't allowed, it will return "too complex"
2023-10-24Allow the shape tree to be traversedAaron Patterson
This commit allows the shape tree to be traversed to locate an existing shape, but it doesn't necessarily allow you to create new variations.
2023-10-24Remove new_shape_necessary codeAaron Patterson
We always create new shapes until we run out!
2023-10-24golf down ancestor cachingAaron Patterson
2023-10-24Remove erroneous test_code.rb fileJemma Issroff
2023-10-24[ruby/prism] Add PostExecutionNode to pm_scope_node_initJemma Issroff
https://github.com/ruby/prism/commit/88fe6213af
2023-10-24Addressing feedbackAaron Patterson
2023-10-24Update benchmark/vm_ivar_ic_miss.ymlAaron Patterson
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2023-10-24updating bindgenAaron Patterson
2023-10-24Don't cache on platforms without mmapAaron Patterson
We're only going to create a redblack tree on platforms that have mmap
2023-10-24geniv objects can become too complexAaron Patterson
2023-10-24remove IV limit / support complex shapes on classesAaron Patterson
2023-10-24increase the maximum number of ivsAaron Patterson
2023-10-24Use a functional red-black tree for indexing the shapesAaron Patterson
This is an experimental commit that uses a functional red-black tree to create an index of the ancestor shapes. It uses an Okasaki style functional red black tree: https://www.cs.tufts.edu/comp/150FP/archive/chris-okasaki/redblack99.pdf This tree is advantageous because: * It offers O(n log n) insertions and O(n log n) lookups. * It shares memory with previous "versions" of the tree When we insert a node in the tree, only the parts of the tree that need to be rebalanced are newly allocated. Parts of the tree that don't need to be rebalanced are not reallocated, so "new trees" are able to share memory with old trees. This is in contrast to a sorted set where we would have to duplicate the set, and also resort the set on each insertion. I've added a new stat to RubyVM.stat so we can understand how the red black tree increases.
2023-10-24[rubygems/rubygems] Handle empty arrayHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/7c0afdd9af
2023-10-24[Bug #19968] Revert RBS revision to testNobuyoshi Nakada
This reverts the commits for the master branch of RBS: - commit f717faac632dd8664d0967f8e639b84d5d032854: "Update rbs revision to test" The target revision to test is in master branch, not for 3.2.x. - commit 9e93af5329f35092c3de3ea37d4e9e181b800bb2: "Skip RBS `RbConfig::TOPDIR` test that is `nil` before installation" RbConfig_test.rb is not updated in 3.2.x branch.
2023-10-23Bump ossf/scorecard-action from 2.3.0 to 2.3.1dependabot[bot]
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.0 to 2.3.1. - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](https://github.com/ossf/scorecard-action/compare/483ef80eb98fb506c348f7d62e28055e49fe2398...0864cf19026789058feabb7e87baa5f140aac736) --- updated-dependencies: - dependency-name: ossf/scorecard-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-10-24Clean up temporary file, wc.input [ci skip]Nobuyoshi Nakada
2023-10-24Use extquote instead of literal tabs [ci skip]Nobuyoshi Nakada
2023-10-24rb_getaddrinfo should return EAI_AGAIN instead of EAGAINYusuke Endoh
2023-10-24Indent critical regions with blocksYusuke Endoh
Cosmetic change per ko1's preference
2023-10-24Do not use pthread on mingwYusuke Endoh
2023-10-24Make rb_getnameinfo interruptibleYusuke Endoh
Same as previous commit for rb_getnameinfo.
2023-10-24Make rb_getaddrinfo interruptibleYusuke Endoh
When pthread_create is available, rb_getaddrinfo creates a pthread and executes getaddrinfo(3) in it. The caller thread waits for the pthread to complete, but detaches it if interrupted. This allows name resolution to be interuppted by Timeout.timeout, etc. even if it takes a long time (for example, when the DNS server does not respond). [Feature #19965]
2023-10-24Expand macro branches to make them plainYusuke Endoh
2023-10-24Refactor GETADDRINFO_IMPL instead of GETADDRINFO_EMUYusuke Endoh
This is a preparation for introducing cancellable getaddrinfo/getnameinfo.
2023-10-24refactor a call to getaddrinfoYusuke Endoh