summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPHeaderBurdette Lamar2022-12-011-60/+103
| | | | | | (https://github.com/ruby/net-http/pull/83) https://github.com/ruby/net-http/commit/1ea5004098
* Module#remove_method: Check frozen on the right objectJean byroot Boussier2022-12-013-1/+22
| | | | | | | | | | | Previously, the frozen check happened on `RCLASS_ORIGIN(self)`, which can return an iclass. The frozen check is supposed to respond to objects that users can call methods on while iclasses are hidden from users. Other mutation methods like Module#{define_method,alias_method,public} don't do this. Check frozen status on the module itself. Fixes [Bug #19164] and [Bug #19166]. Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
* [Bug #19087] Merge to "trailing garbage" caseNobuyoshi Nakada2022-12-021-6/+3
|
* [Bug #19087] Fix an assertion of `String#to_c`Nobuyoshi Nakada2022-12-021-2/+4
|
* [Bug #19087] Disallow successive underscores in Complex stringNobuyoshi Nakada2022-12-022-3/+25
|
* parenthesize to macroS-H-GAMELINKS2022-12-021-3/+3
|
* Introduce encoding check macroS-H-GAMELINKS2022-12-028-10/+20
|
* Introduce argf_encoding functionS-H-GAMELINKS2022-12-021-8/+13
|
* Reuse NIL_OR_UNDEF_P macroS-H-GAMELINKS2022-12-024-4/+4
|
* YJIT: Reorder branches for Fixnum opt_case_dispatch (#6841)Takashi Kokubun2022-12-014-5/+77
| | | | | | | | | | | * YJIT: Reorder branches for Fixnum opt_case_dispatch Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> Co-authored-by: Alan Wu <alansi.xingwu@shopify.com> * YJIT: Don't support too large values Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
* [Feature #19163] Marshal-loaded Data object also should be frozenNobuyoshi Nakada2022-12-022-0/+11
|
* [Feature #19163] Data object should be frozenNobuyoshi Nakada2022-12-022-1/+19
|
* YJIT: fix 32 and 16 bit register store (#6840)Jemma Issroff2022-12-013-2/+45
| | | | | | | | | | | | | | | | | | | | * Fix 32 and 16 bit register store in YJIT Co-Authored-By: Takashi Kokubun <takashikkbn@gmail.com> * Remove an unnecessary diff * Reuse an rm_num_bits result * Use u16::MAX instead * Update the link Co-authored-by: Alan Wu <XrXr@users.noreply.github.com> * Just use sturh for 16 bits Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com> Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
* Fix indents in NEWS [ci skip]Nobuyoshi Nakada2022-12-011-31/+33
| | | | | | The MarkDown parser in RDoc requires 4 columns indentation for paragraphs following list items. Otherwise, the following paragraphs are not interpreted as the part of the preceeding list item,
* Introduce `Fiber#storage` for inheritable fiber-scoped variables. (#6612)Samuel Williams2022-12-0110-56/+442
|
* [Bug #19108] Check for the encoding of pack/unpack formatNobuyoshi Nakada2022-12-012-0/+16
|
* [ruby/delegate] Revert "Fix `DelegateClass` block "method redefined" warning"Nobuyoshi Nakada2022-12-012-14/+0
| | | | https://github.com/ruby/delegate/commit/2a91436284
* [Feature #19138] Add `SyntaxError#path`Nobuyoshi Nakada2022-12-013-10/+55
|
* Use RTEST and add test for GH-6832Alan Wu2022-11-302-1/+9
| | | | | Technically we shouldn't see Qfalse now, but RTEST also compiles down to just one branch anyways. Pretty contrived issue, but easy to fix.
* struct.c (struct_ivar_get): add conditional for potential Qnil returned by ↵Zack Deveau2022-11-301-1/+1
| | | | | | | | | rb_class_superclass struct_ivar_get recently started using rb_class_superclass to resolve super instead of RCLASS_SUPER. This change made Qnil a possible case we need to return from within the struct_ivar_get for loop.
* YJIT: Optimize rb_int_equal (#6838)Takashi Kokubun2022-11-302-0/+47
|
* YJIT: add new counters for deferred compilation and queued blocks (#6837)Maxime Chevalier-Boisvert2022-11-303-0/+8
|
* Prevent segfault in String#scan with ObjectSpace.each_objectYusuke Endoh2022-12-012-0/+16
| | | | | | | | | | Calling `String#scan` without a block creates an incomplete MatchData object whose `RMATCH(match)->str` is Qfalse. Usually this object is not leaked, but it was possible to pull it by using ObjectSpace.each_object. This change hides the internal MatchData object by using rb_obj_hide. Fixes [Bug #19159]
* [ruby/rdoc] Fix `=end` delimiterNobuyoshi Nakada2022-12-011-1/+1
| | | | https://github.com/ruby/rdoc/commit/e1679fa7e4
* [ruby/rdoc] Non-RD part feature has not been imported to RDocNobuyoshi Nakada2022-12-012-0/+28
| | | | https://github.com/ruby/rdoc/commit/fe0159de2f
* [ruby/rdoc] Use TempfileNobuyoshi Nakada2022-12-011-7/+4
| | | | https://github.com/ruby/rdoc/commit/0b9dde5ab4
* Use class methods of `File` over `Kernel.open` and `IO.read`Nobuyoshi Nakada2022-12-0111-30/+40
|
* YJIT: Deallocate `struct Block` to plug memory leaksAlan Wu2022-11-303-27/+84
| | | | | | | | | | | | | | | Previously we essentially never freed block even after invalidation. Their reference count never reached zero for a couple of reasons: 1. `Branch::block` formed a cycle with the block holding the branch 2. Strong count on a branch that has ever contained a stub never reached 0 because we increment the `.clone()` call for `BranchRef::into_raw()` didn't have a matching decrement. It's not safe to immediately deallocate blocks during invalidation since `branch_stub_hit()` can end up running with a branch pointer from an invalidated branch. To plug the leaks, we wait until code GC or global invalidation and deallocate the blocks for iseqs that are definitely not running.
* YJIT: Deallocate when assumptions tables are emptyAlan Wu2022-11-301-0/+28
| | | | | | When we run global invalidation for TracePoints or code GC, we clear out all blocks in our assumptions table but we don't deallocate the backing buffers. Let's reclaim some memory during these rare events.
* YJIT: Fix IseqPayload::pages memory bloatAlan Wu2022-11-301-1/+1
| | | | | | HashSet::clear() doesn't deallocate the backing buffer and shrink the capacity. Replace with a 0-capcity set instead so we reclaim some memory each code GC.
* Enable to dispatch Code scanning [ci skip]Nobuyoshi Nakada2022-11-301-0/+1
|
* [ruby/irb] Use class methods of `File` over `Kernel.open`Nobuyoshi Nakada2022-11-301-1/+1
| | | | https://github.com/ruby/irb/commit/e0ec5e1bd8
* [ruby/un] wait_writable: close opened fileNobuyoshi Nakada2022-11-301-1/+1
| | | | https://github.com/ruby/un/commit/b08aeb9c48
* Removed documentation for incomplete option about [Feature #17134]Hiroshi SHIBATA2022-11-301-1/+0
|
* MJIT: Revert FL_EXIVAR check optimizationTakashi Kokubun2022-11-291-17/+7
| | | | It seems to slow down optcarrot. I'll revisit this later.
* MJIT: Rename mjit_compile_attr to mjit_sp_incTakashi Kokubun2022-11-296-7/+7
| | | | There's no mjit_compile.inc, so no need to use this prefix anymore.
* MJIT: Merge mjit_unit.h into mjit_c.hTakashi Kokubun2022-11-294-36/+29
| | | | The distinction doesn't make much difference today.
* MJIT: Rename mjit_compiler.c to mjit_c.cTakashi Kokubun2022-11-293-238/+230
| | | | It's no longer about the compiler logic itself.
* [ruby/irb] Make sure ls doesn't return an arrayTakashi Kokubun2022-11-301-0/+1
| | | | | | (https://github.com/ruby/irb/pull/461) https://github.com/ruby/irb/commit/367797bb05
* Update default gems list at d6e91784ab78c25e864869b05a149e [ci skip]git2022-11-301-1/+1
|
* Update SyntaxSuggest to use angle brackets `>`schneems2022-11-3010-58/+58
| | | | | | | | | ``` $ ruby tool/sync_default_gems.rb syntax_suggest Sync ruby/syntax_suggest ``` https://github.com/ruby/syntax_suggest/pull/161
* Mention Exception#detailed_message in NEWS.mdYusuke Endoh2022-11-301-0/+7
|
* Mention Regexp.timeout= in NEWS.mdYusuke Endoh2022-11-301-0/+4
|
* Fix unused variable warningsTakashi Kokubun2022-11-291-10/+10
| | | | builtin seems to be not handling this correctly.
* YJIT: Skip checking interrupt_mask (#6825)Takashi Kokubun2022-11-291-6/+4
|
* Add a test case for argument forwardingyui-knk2022-11-291-0/+10
|
* Extract outdate-bundled-gems.rbNobuyoshi Nakada2022-11-292-29/+135
|
* Fix dependencies of outdate-bundled-gemsNobuyoshi Nakada2022-11-292-7/+16
| | | | Extract new gems then remove outdated gem directories.
* Refine outdate-bundled-gemsNobuyoshi Nakada2022-11-292-9/+29
|
* MJIT: Move Primitive helpers to mjit_c.rbTakashi Kokubun2022-11-292-52/+35
|