summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-08-30[ruby/yarp] Rename child_nodes to fieldsKevin Newton
https://github.com/ruby/yarp/commit/715fce9264
2023-08-30[ruby/yarp] Move templating logic until YARPKevin Newton
https://github.com/ruby/yarp/commit/8b7430dbc7
2023-08-30Document that Kernel#p is for debugging and may be uninterruptible [ci skip]Jeremy Evans
Fixes [Bug #18810] Notes: Merged: https://github.com/ruby/ruby/pull/7975
2023-08-30[ruby/yarp] Add class variables to the constant poolKevin Newton
https://github.com/ruby/yarp/commit/be5cb60c83
2023-08-30[ruby/yarp] Fix instance variable constant namesKevin Newton
https://github.com/ruby/yarp/commit/1f94f55fcb
2023-08-30Work around a hang in fork(2) on FreeBSDKJ Tsanaktsidis
See bug https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271490 On FreeBSDk, it's possible for fork(2) in a multithreaded process to hang because of a bug in the lock handling of the dynamic linker. This is now fixed on FreeBSD master, but it would be good if we could work around it for Ruby CI which is running 13.1. Setting LD_BIND_NOW seems to work around the problem (probably because the dynamic linker doesn't then need to resolve anything through the PLT when it's first called). Notes: Merged: https://github.com/ruby/ruby/pull/7867
2023-08-30[ruby/yarp] Fix unused variable in YARPRubyAPITestKevin Newton
https://github.com/ruby/yarp/commit/0556f971ce
2023-08-30Update YARP APIs to handle uint8_tKevin Newton
2023-08-30[ruby/yarp] Switch from handling const char * to const uint8_t *Kevin Newton
https://github.com/ruby/yarp/commit/465e7bb0a9
2023-08-30[ruby/yarp] Fix test-unit API in fuzzer testKevin Newton
https://github.com/ruby/yarp/commit/d24f62566e
2023-08-30[ruby/yarp] fix: comment followed by whitespace at end of fileMike Dalessio
Previously this resulted in invalid memory access. Found by the fuzzer. https://github.com/ruby/yarp/commit/b248553dd6
2023-08-30[ruby/yarp] fix: heredoc with incomplete escape at end of fileMike Dalessio
Previously this resulted in invalid memory access. Found by the fuzzer. https://github.com/ruby/yarp/commit/ec4abd87f4
2023-08-30[ruby/yarp] fix: incomplete escape in regex at the end of fileMike Dalessio
Previously this resulted in invalid memory access. Found by the fuzzer. https://github.com/ruby/yarp/commit/55b9dfb41c
2023-08-30[ruby/yarp] fix: incomplete escape in list at the end of fileMike Dalessio
Previously this resulted in invalid memory access. Found by the fuzzer. https://github.com/ruby/yarp/commit/78ed75ed75
2023-08-30[ruby/yarp] fix: trailing decimal, binary, octal, and hex numbers at end of fileMike Dalessio
Previously this resulted in invalid memory access. Found by the fuzzer. https://github.com/ruby/yarp/commit/af5b85a27a
2023-08-30[ruby/yarp] fix: trailing asterisk at end of fileMike Dalessio
Previously this resulted in invalid memory access. Found by the fuzzer. https://github.com/ruby/yarp/commit/c86b4907b4
2023-08-30[ruby/yarp] fix: trailing comment at end of fileMike Dalessio
Previously this resulted in invalid memory access. Found by the fuzzer. https://github.com/ruby/yarp/commit/a1c9404906
2023-08-30[ruby/yarp] fix: string escape char "\" at the end of a fileMike Dalessio
Previously this resulted in invalid memory access. Found by the fuzzer. https://github.com/ruby/yarp/commit/178862e2ca
2023-08-30[ruby/yarp] fix: ":" at the end of a fileMike Dalessio
Previously this resulted in invalid memory access. Found by the fuzzer. https://github.com/ruby/yarp/commit/c781c9fcd2
2023-08-30[ruby/yarp] fix: "$" at the end of a fileMike Dalessio
Previously this resulted in invalid memory access as well as a cascading failed assertion: src/enc/yp_unicode.c:2224: yp_utf_8_codepoint: Assertion `n >= 1' failed. Found by the fuzzer. https://github.com/ruby/yarp/commit/a34c534440
2023-08-30[ruby/yarp] test: new test file for capturing interesting fuzzer snippetsMike Dalessio
Note that we call `YARP.dump` for these fuzzer tests to better match the fuzz.parse harness, which also serializes. https://github.com/ruby/yarp/commit/032ad047e9
2023-08-30[ruby/yarp] debug: ensure valgrind will work when calling YARP.dumpMike Dalessio
https://github.com/ruby/yarp/commit/deba3420d5
2023-08-30Stop using -v for rjit test-allTakashi Kokubun
It outputs way too many lines. It's hard to download the output from GitHub Actions.
2023-08-30[ruby/yarp] Desugar ||= more accuratelyKevin Newton
Class variables, global variables, constants, and constant paths should actually desugar to `defined?` instead of just reading the value. https://github.com/ruby/yarp/commit/551a59b876
2023-08-30Fix merge error on ruby_api_test.rbKevin Newton
2023-08-30[ruby/yarp] Use assert_raiseKevin Newton
https://github.com/ruby/yarp/commit/b85e01d77d
2023-08-30[ruby/yarp] use a more idiomatic form of `assert_raises`Nathan Froyd
https://github.com/ruby/yarp/commit/687213d2e3
2023-08-31use assert_raiseNobuyoshi Nakada
2023-08-30YJIT: shrink Context from 29 to 21 bytes by reducing space used by ↵Maxime Chevalier-Boisvert
TempMapping (#8321) * YJIT: merge tempmapping and temp types into a single-byte encoding YJIT: refactor to shrink Context by 8 bytes * Add tests, fix bug in TempMapping::map_to_local() * Update yjit/src/core.rs Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com> * Update yjit/src/core.rs Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com> * Fewer transmutes where `as` would suffice. Also repr(u8) * Update yjit/src/core.rs Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com> * Update yjit/src/core.rs Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com> * Update yjit/src/core.rs Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com> --------- Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com> Co-authored-by: Alan Wu <XrXr@users.noreply.github.com> Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
2023-08-30[ruby/yarp] add tests for `Location#join`Nathan Froyd
https://github.com/ruby/yarp/commit/b01711396f
2023-08-30sync_default_gems.rb: Remove Java templatesNobuyoshi Nakada
2023-08-30Update default gems list at 36a3899e9d464e243648694fa28398 [ci skip]git
2023-08-30[ruby/irb] Bump version to 1.8.0Stan Lo
(https://github.com/ruby/irb/pull/700) https://github.com/ruby/irb/commit/a061744ed3
2023-08-30BasicSocket#recv* return `nil` rather than an empty packetJean Boussier
[Bug #19012] man recvmsg(2) states: > Return Value > These calls return the number of bytes received, or -1 if an error occurred. > The return value will be 0 when the peer has performed an orderly shutdown. Not too sure how one is supposed to make the difference between a packet of size 0 and a closed connection. Notes: Merged: https://github.com/ruby/ruby/pull/6407
2023-08-30sync_default_gems.rb: Fix typo in replace_rdoc_ref_allNobuyoshi Nakada
2023-08-30sync_default_gems.rb: Transform by procNobuyoshi Nakada
2023-08-30[DOC] Detailed explanation when one line pattern matching is a void value ↵yui-knk
expression Notes: Merged: https://github.com/ruby/ruby/pull/8320
2023-08-30Update bundled gems list at ad2a464e8fc6bd4daa5b20b3c69d94 [ci skip]git
2023-08-30Bundle RBS 3.2.1 (#8306)Soutaro Matsumoto
Notes: Merged-By: soutaro <matsumoto@soutaro.com>
2023-08-30[rubygems/rubygems] Update bundler/lib/bundler/settings.rbJosh Nichols
https://github.com/rubygems/rubygems/commit/75ffa8ef76 Co-authored-by: Martin Emde <martinemde@users.noreply.github.com>
2023-08-30[rubygems/rubygems] (Further) Improve Bundler::Settings#[] performance and ↵Josh Nichols
memory usage I previously identified and improved this method over in https://github.com/rubygems/rubygems/pull/6884 but while reviewing another memory_profiler profile, I realized another gain we can eek out. This method keeps comes up in part because `configs` is allocating a new Hash every time. My last change took advantage of that by using `map!` on it. `configs` is called quite often, including in this `[]` method, so there's a benefit to memoizing it. Back in `[]`, logically we are trying to find the first Hash in `configs` that has a value for the given key. Currently, we end up `map` and `compact` to just get that value. Instead, we can use a loop over `configs`, and break when we find the value for the key. https://github.com/rubygems/rubygems/commit/b913cfc87b
2023-08-29Fix string2cstr in lldb_cruby.py [ci skip]Peter Zhu
2023-08-29[YARP] Until Node, minor cleanup (#8325)Jemma Issroff
* Remove conditional from yp_compile_if * Extracted yp_compile_while, compile UntilNode * Small checks for body / value that could be empty
2023-08-29Compile more YARP node types (#8322)Jemma Issroff
* Add several more node simple types to YARP's compiler: Nodes include: DefinedNode, EmbeddedStatementsNode, LocalVariableReadNode, LocalVariableWriteNode, MultiWriteNode, OptionalParameterNode, SplatNode, YieldNode * Add AssocSplatNode, RangeNode * Add RangeNode, other helpers for future nodes * Add ArrayNode, HashNode, static literal helpers * Add branch conditionals * Add IfNode, UnlessNode * Add ScopeNode * NEW_ISEQ and NEW_CHILD_ISEQ implemented for YARP * Add nodes that depend on ScopeNode * Addressed PR comments
2023-08-29[ruby/yarp] Add instance variable names to the constant poolKevin Newton
https://github.com/ruby/yarp/commit/f049932c44
2023-08-29Tests for the YARP compilerKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/8323
2023-08-29[ruby/yarp] Statements inside ensure blocks can accept blocksKevin Newton
https://github.com/ruby/yarp/commit/be84ea5343
2023-08-29[rubygems/rubygems] Fix bundle update --redownloadSamuel Giddins
It now does the redownloading/installing just like bundle install --redownload https://github.com/rubygems/rubygems/commit/3b058e5eca
2023-08-29[ruby/irb] Improve help/show_cmds message during debuggerStan Lo
integration (https://github.com/ruby/irb/pull/693) * `help` should display debugger's help during irb:rdbg session * Update `show_cmds`'s output when in irb:rdbg session https://github.com/ruby/irb/commit/4029c2e564
2023-08-29[ruby/reline] Remove `ARGV.first` in east_asian_width.rbima1zumi
(https://github.com/ruby/reline/pull/587) `ARGV.first` is the name of the EastAsianWidth file and is not needed for east_asian_width.rb https://github.com/ruby/reline/commit/6649bda31c