summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-12-22[DOC] encodings.rdoc: universal_newline reacts to \rAlan Wu
It wasn't clear that the mode also translates "\r" to "\n". Notes: Merged: https://github.com/ruby/ruby/pull/6981
2022-12-23addr2line.c: Support DW_FORM_rnglistxYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/6993
2022-12-23addr2line.c: Implement DW_AT_*_baseYusuke Endoh
... and add code to parse the sections of .debug_addr_base and .debug_rnglists_base. Notes: Merged: https://github.com/ruby/ruby/pull/6993
2022-12-23addr2line.c: Support DW_FORM_strx* formsYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/6993
2022-12-23addr2line.c: Support DW_FORM_addrx* formsYusuke Endoh
... and add VAL_addr value type Notes: Merged: https://github.com/ruby/ruby/pull/6993
2022-12-23addr2line.c: Keep .debug_str_offsets and .debug_addr sections as wellYusuke Endoh
clang generates DWARF with the sections Notes: Merged: https://github.com/ruby/ruby/pull/6993
2022-12-22Fix buffer overrun with auto-compact for shapesPeter Zhu
The following script crashes: ```ruby GC.auto_compact = true GC.stress = true class Foo def initialize @a = @b = @c = 0 end def add_ivars @d = @e = @f = 0 end end ary = 1_000.times.map { Foo.new } ary.each { |f| f.add_ivars } ``` This is because in rb_grow_iv_list, it first calls rb_ensure_iv_list_size to allocate the buffer (and also unsets the embed bit) then rb_shape_transition_shape_capa to get the new shape. However, auto-compact can trigger in rb_shape_transition_shape_capa which would re-embed the object since it doesn't have the new shape yet. This causes a crash as the object is now embedded but has a non-embed shape which would cause the object to have a buffer overrun. Notes: Merged: https://github.com/ruby/ruby/pull/6986
2022-12-22addr2line.c: Fix another indexing bugYusuke Endoh
2022-12-22addr2line.c: Fix indexing bugYusuke Endoh
2022-12-22Refactor `reg_extract_args` to return regexp if givenNobuyoshi Nakada
2022-12-22addr2info.c: Make it work with --enable-yjitYusuke Endoh
Background: GCC 12 generates DWARF 5 with .debug_rnglists, while rustc generates DWARF 4 with .debug_ranges. The previous logic always used .debug_rnglists if there is the section. However, we need to refer .debug_ranges for DWARF 4. This change keeps DWARF version of the current compilation unit and use a proper section depending on the version. Notes: Merged: https://github.com/ruby/ruby/pull/6980
2022-12-22addr2line.c: Support "Line Number Program Header" in DWARF 5Yusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/6980
2022-12-22addr2line.c: Keep .debug_line_str section as wellYusuke Endoh
... and properly support DW_FORM_line_strp. This is a prepartion to support DWARF 5. Notes: Merged: https://github.com/ruby/ruby/pull/6980
2022-12-22Update default gems list at fe7190a8c19bb56ca0aefed368402a [ci skip]git
2022-12-22[ruby/optparse] Bump version to 0.3.1Hiroshi SHIBATA
https://github.com/ruby/optparse/commit/2a1e157ae1
2022-12-22NEWS.md: Update power_assert versionKazuki Tsujimoto
2022-12-22Share argument parsing in `Regexp#initialize` and `Regexp.linear_time?`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6988
2022-12-21Put RubyVM::MJIT::Compiler under ruby_vm directory (#6989)Takashi Kokubun
[Misc #19250] Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-12-22Adjust style [ci skip]Nobuyoshi Nakada
2022-12-22Fix link [ci skip]Kazuhiro NISHIYAMA
2022-12-21Revert "Update bundled gems list at 2022-12-22"Takashi Kokubun
This reverts commit 89a66f20d8701f30f3d9952ae62a02fdefcd166b.
2022-12-21Clarify NEWS entry for Bug #16889Jeremy Evans
2022-12-21Make sure TracePoint#binding returns nil for c_call/c_return eventsJeremy Evans
This makes sure the method returns nil for these events, as described in NEWS, even if the TracePoint could create a binding. Notes: Merged: https://github.com/ruby/ruby/pull/6984 Merged-By: jeremyevans <code@jeremyevans.net>
2022-12-22[DOC] Update TracePoint.allow_reentry docszverok
Adjust call-seq to mention block, and add examples and explanations. Notes: Merged: https://github.com/ruby/ruby/pull/5380
2022-12-22Update documentation about Time#deconstruct_keysKazuki Tsujimoto
2022-12-22[DOC] Fix the paragraph about PRNG updateNobuyoshi Nakada
2022-12-22Added the missing word with 1e1d7047fccHiroshi SHIBATA
2022-12-22Introduce GH releases for default gems and bundled gemsHiroshi SHIBATA
2022-12-18NEWS.md: Tweak "Constant lookup when defining a class/module"Yusuke Endoh
2022-12-18NEWS.md: Fix typosYusuke Endoh
2022-12-18NEWS.md: Fix a typoYusuke Endoh
2022-12-22Update bundled gems list at 2022-12-22git
2022-12-22Update power_assert to 2.0.3Kazuki Tsujimoto
2022-12-21Introduce some notable IRB features in NEWS [ci skip]Takashi Kokubun
2022-12-21Skip a flaky Ractor test for mswinTakashi Kokubun
2022-12-21Make it clear that it doesn't update the receiver [ci skip]Takashi Kokubun
2022-12-21Add Data#with to examples in the NEWS [ci skip]Takashi Kokubun
2022-12-21Add copy with changes functionality for Data objects (#6766)Ufuk Kayserilioglu
Implements [Feature #19000] This commit adds copy with changes functionality for `Data` objects using a new method `Data#with`. Since Data objects are immutable, the only way to change them is by creating a copy. This PR adds a `with` method for `Data` class instances that optionally takes keyword arguments. If the `with` method is called with no arguments, the behaviour is the same as the `Kernel#dup` method, i.e. a new shallow copy is created with no field values changed. However, if keyword arguments are supplied to the `with` method, then the copy is created with the specified field values changed. For example: ```ruby Point = Data.define(:x, :y) point = Point.new(x: 1, y: 2) point.with(x: 3) # => #<data Point x: 3, y: 2> ``` Passing positional arguments to `with` or passing keyword arguments to it that do not correspond to any of the members of the Data class will raise an `ArgumentError`. Co-authored-by: Alan Wu <XrXr@users.noreply.github.com> Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-12-22Fix the case trailer without newlineNobuyoshi Nakada
cf0b413ef8b794ef6e7436f22fd5a998050dada9
2022-12-22[DOC] Fix typoNobuyoshi Nakada
2022-12-21[ruby/net-http] Adding links to referencesBurdetteLamar
https://github.com/ruby/net-http/commit/71bae5c0fe
2022-12-21[ruby/net-http] Adding links to referencesBurdetteLamar
https://github.com/ruby/net-http/commit/e4df80f299
2022-12-21[ruby/net-http] Adding links to referencesBurdetteLamar
https://github.com/ruby/net-http/commit/df5a554fa8
2022-12-21Set up RBS_SKIP_TESTS (#6862)Soutaro Matsumoto
* Set up RBS_SKIP_TESTS Notes: Merged-By: soutaro <matsumoto@soutaro.com>
2022-12-21[DOC] tool/update-NEWS-refs.rb: Align footnotesNobuyoshi Nakada
2022-12-21[DOC] tool/update-NEWS-refs.rb: Remove extra bracketsNobuyoshi Nakada
Surrounding with brackets is just a convention for the bugs tracker links.
2022-12-21Make Enumerartor.product return nil when called with a blockAkinori MUSHA
2022-12-21Make product consistently yield an array of N elements instead of N argumentsAkinori MUSHA
Inconsistency pointed out by @mame: ``` >> Enumerator.product([1], [2], [3]).to_a => [[1, 2, 3]] >> Enumerator.product([1], [2]).to_a => [[1, 2]] >> Enumerator.product([1]).to_a => [1] >> Enumerator.product().to_a => [nil] ``` Got fixed as follows: ``` >> Enumerator.product([1], [2], [3]).to_a => [[1, 2, 3]] >> Enumerator.product([1], [2]).to_a => [[1, 2]] >> Enumerator.product([1]).to_a => [[1]] >> Enumerator.product().to_a => [[]] ``` This was due to the nature of the N-argument funcall in Ruby.
2022-12-21Removed empty sectionHiroshi SHIBATA
2022-12-21Update bundled_gemsHiroshi SHIBATA