summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-09-22[Bug #19896]Adam Hess
fix memory leak in vm_method This introduces a unified reference_count to clarify who is referencing a method. This also allows us to treat the refinement method as the def owner since it counts itself as a reference Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2023-09-22[ruby/irb] Page show_source's outputStan Lo
(https://github.com/ruby/irb/pull/719) https://github.com/ruby/irb/commit/3cedc5cb62
2023-09-22[ruby/yarp] Create arguments when necessaryHaldun Bayhantopcu
https://github.com/ruby/yarp/commit/123332f255
2023-09-22[YARP] Suppress constant redefinition warningNobuyoshi Nakada
``` <compiled>:1: warning: already initialized constant Bar test/yarp/compiler_test.rb:139: warning: previous definition of Bar was here ```
2023-09-22[ruby/zlib] Add truffleruby-head in CIBenoit Daloze
* The latest release does not have this fix: https://github.com/oracle/truffleruby/commit/c77f8bb35db084c99d1f5b14748267866004222e https://github.com/ruby/zlib/commit/8abc80b994
2023-09-22Directly free structure managed by imemo tmpbufyui-knk
NODE_ARGS, NODE_ARYPTN, NODE_FNDPTN manage memory of their structure by imemo tmpbuf Object. However rb_ast_struct has reference to NODE. Then these memory can be freed directly when rb_ast_struct is freed. This commit reduces parser's dependency on CRuby functions.
2023-09-21[YARP] Implement ConstantPathTargetNodeMatt Valentine-House
Co-Authored-By: kddnewton <kevin.newton@shopify.com>
2023-09-21[ruby/pstore] [DOC] Link fixesBurdetteLamar
https://github.com/ruby/pstore/commit/3f328a1e0e
2023-09-21Update default gems list at 2df00640ff098a305eacee48cf2c77 [ci skip]git
2023-09-21[ruby/openssl] Ruby/OpenSSL 3.2.0Kazuki Yamaguchi
https://github.com/ruby/openssl/commit/6b3dd6a372
2023-09-21[ruby/openssl] Update README and gemspec descriptionKazuki Yamaguchi
* Reword the description in README for more clarity. * Add a compatibility matrix of our stable branches and explain the maintenance policy. * Remove the obsolete paragraph for how to use the gem in Ruby 2.3, which is no longer supported. https://github.com/ruby/openssl/commit/7691034fcb
2023-09-21[rubygems/rubygems] Reduce allocations when parsing lockfileSamuel Giddins
``` ==> memprof.after.txt <== Total allocated: 673.08 kB (7644 objects) Total retained: 107.35 kB (1018 objects) ==> memprof.before.txt <== Total allocated: 739.12 kB (9140 objects) Total retained: 138.61 kB (1695 objects) ``` Savings will scale by the number of lines in the lockfile https://github.com/rubygems/rubygems/commit/f6abf4439c
2023-09-21[ruby/yarp] encourage the compiler to compile `lex_keyword` more efficientlyNathan Froyd
https://github.com/ruby/yarp/commit/f7bb139e2f
2023-09-21[YARP] Add tests for popped instructions (#8494)Jemma Issroff
2023-09-21[rubygems/rubygems] Fix safe marshal test on jrubySamuel Giddins
Allow for variance in order of dumped ivars, fix by setting the disallowed ivar on an object that will have no other ivars so the index is consistent https://github.com/rubygems/rubygems/commit/ccb8f42753
2023-09-21[rubygems/rubygems] Remove usage of Dir.chdir that just execute a subprocessSamuel Giddins
Preferring instead to spawn the subprocess in the correct directory https://github.com/rubygems/rubygems/commit/ad5abd6a45
2023-09-21[rubygems/rubygems] Stop bundler eagerly loading all specs with extsSamuel Giddins
We were setting the wrong `extension_dir` for git specs stubs Additionally, the call to `self.extension_dir` was loading the remote spec, which was avoidable since the stub had an extension dir (and in fact its #gem_build_complete_path does exactly what we want anyway) Finally, now set the base_dir when loading the remote_spec from a stub specification, since the git source sets the base dir for stubs based on where the spec _will_ be installed to, and we want to preserve that so the base_dir for the loaded spec & the stub are the same https://github.com/rubygems/rubygems/commit/a94acb465b
2023-09-21[rubygems/rubygems] Freeze more strings in generated gemspecsSamuel Giddins
Specifically, this will have frozen string literals for: - Gem platform tuple entries - Gem::Version strings - Gem::Specification#installed_by_version - Dependency requirement strings https://github.com/rubygems/rubygems/commit/6195da5bdb
2023-09-21[ruby/openssl] Fix test_pkey_ec.rb on FIPS.Jun Aruga
https://github.com/ruby/openssl/commit/d07183f639
2023-09-21[ruby/openssl] test_pkey.rb: Refactor the test_ed25519 on FIPS.Jun Aruga
* Split the test in the FIPS case as another test. * test/openssl/utils.rb: Add omit_on_fips and omit_on_non_fips methods. https://github.com/ruby/openssl/commit/4d64c38ed0
2023-09-21[ruby/openssl] test_fips.rb: Fix the `OpenSSL.fips_mode` affecting other tests.Jun Aruga
Run the test with `assert_separately` for the `false` value of the `OpenSSL.fips_mode` not to affect other tests. https://github.com/ruby/openssl/commit/2fe3438d8a
2023-09-21Use ANSI-style prototype declarations instead of the old K&R styleNobuyoshi Nakada
2023-09-21Move YARP_BUILD_DIR to common.mkNobuyoshi Nakada
It does not need to be an absolute path.
2023-09-21[rubygems/rubygems] Aggressively optimize allocations in SafeMarshalSamuel Giddins
Reduces allocations in a bundle install --full-index by an order of magnitude Main wins are (a) getting rid of exessive string allocations for exception message stack (b) Avoiding hash allocations caused by kwargs for #initialize (c) avoid using unpack to do bit math, its easy enough to do by hand (d) special case the most common elements so they can be read without an allocation (e) avoid string allocations every time a symbol->string lookup is done by using symbol#name https://github.com/rubygems/rubygems/commit/7d2ee51402
2023-09-21Slack notification cannot send from other than ruby/* [ci skip]Nobuyoshi Nakada
2023-09-21[Bug #19892] Clean intermediate files regardless `-keep_temp`Nobuyoshi Nakada
Not to include such files in the result packages.
2023-09-21Make `clean.create` to accept a blockNobuyoshi Nakada
Like `File.open`, yield an IO to write the file.
2023-09-21`.NOTPARALLEL` with prerequisites needs recent GNU MakeNobuyoshi Nakada
GNU Make prior to 4.4 just ignores the prerequisites, and runs everything in serial.
2023-09-21Optimize Range#bsearch for beginless/endless ranges within FixnumKouhei Yanagita
2023-09-21[Bug #19624] Clean up backquote IONobuyoshi Nakada
It should not be hidden, since it can be grabbed by a fiber scheduler.
2023-09-20[ruby/date] [DOC] Fix linkBurdetteLamar
https://github.com/ruby/date/commit/2adb917487
2023-09-20[ruby/yarp] Print locations using line / col instead of offsetsJemma Issroff
This commit changes printing of locations to use the format (start_line,start_column)-(end_line,end_column) instead of using offsets. https://github.com/ruby/yarp/commit/c078696e22
2023-09-20[ruby/yarp] Check whether the conditional predicate is closedHaldun Bayhantopcu
https://github.com/ruby/yarp/commit/5022b51db2
2023-09-20--disable-jit-support no longer existsTakashi Kokubun
2023-09-20[YARP] Pop AliasNode when appropriate (#8466)Jemma Issroff
2023-09-20doc: initial operators commitNicholas Browning
docs: expand on operator documentaion Include more specific details around logical operators. doc: update link with proper syntax doc: remove ambiguous language from operators doc doc: remove link to source code file doc: cleaning up some language, and removing some mistakes in understanding doc: revert example to prior state doc: fix spacing doc: Update doc/syntax/operators.rdoc align example with typical format Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> doc: Update doc/syntax/operators.rdoc align format of other examples with rest of documentation Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> Update doc/syntax/operators.rdoc align format of other examples with rest of documentation Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> doc: include `and` & `or` operators doc(operators): remove accute language
2023-09-20Fix memory leak in complemented method entriesPeter Zhu
[Bug #19894] When a copy of a complemented method entry is created, there are two issues: 1. IMEMO_FL_USER3 is not copied, so the complemented status is not copied over. 2. In rb_method_entry_clone we increment both alias_count and complemented_count. However, when we free the method entry in rb_method_definition_release, we only decrement one of the two counters, resulting in the rb_method_definition_t being leaked. Co-authored-by: Adam Hess <adamhess1991@gmail.com>
2023-09-20Fix the case of file to be ignored with to be removedNobuyoshi Nakada
The case of 7fc73ab5f6fbe46655855079954b26dcc14576b3, which modified `.gitignore` and `.github/workflows/main.yml`. Both files need to be rejected and restored, but since the latter file was not there before, `git checkout` failed and the former file could not be restored along with it. To fix this failure, restore the ignored files one by one.
2023-09-20Add a successful sync test caseNobuyoshi Nakada
2023-09-20Bump ruby/setup-ruby from 1.153.0 to 1.154.0dependabot[bot]
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.153.0 to 1.154.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/5311f05890856149502132d25c4a24985a00d426...52b8784594ec115fd17094752708121dc5dabb47) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-09-20[rubygems/rubygems] Give up, load Time via Marshal.loadSamuel Giddins
https://github.com/rubygems/rubygems/commit/6c92ba2ba3
2023-09-20[rubygems/rubygems] Ruby 2.6 compatSamuel Giddins
https://github.com/rubygems/rubygems/commit/1a84960af3
2023-09-20[rubygems/rubygems] All rubies working with different time zonesSamuel Giddins
Tested with: `ruby -e 'trap("INT") { exit 1 }; TZ=%w[UTC +0000 -0000]; RUBY=%w[ruby-2.7 ruby-3.2.2 jruby-9.4 truffleruby-22 truffleruby-23]; TZ.product(RUBY).each { |t, r| puts ?**120, "TZ=#{t} RUBY=#{r}", "*"*120; system({"TZ"=>t,"RUBY"=>r}, *ARGV) }' zsh -lic 'chruby $RUBY; ruby -vw -Ilib test/rubygems/test_gem_safe_marshal.rb --verbose=progress'` https://github.com/rubygems/rubygems/commit/6192005afb
2023-09-20[rubygems/rubygems] Tests passing on truffleruby 22 in addition to 23Samuel Giddins
https://github.com/rubygems/rubygems/commit/8065530d43
2023-09-20[rubygems/rubygems] safe_load tests passing on jruby & trufflerubySamuel Giddins
https://github.com/rubygems/rubygems/commit/a64b21b052
2023-09-20[rubygems/rubygems] Bundler error handlingSamuel Giddins
https://github.com/rubygems/rubygems/commit/63b422b71a
2023-09-20[rubygems/rubygems] Allow bundler to load from the dependency apiSamuel Giddins
https://github.com/rubygems/rubygems/commit/3303957286
2023-09-20[rubygems/rubygems] Use safe_load in bundler when availableSamuel Giddins
https://github.com/rubygems/rubygems/commit/34d096e38a
2023-09-20[rubygems/rubygems] Fix bundler specs using safe_loadSamuel Giddins
https://github.com/rubygems/rubygems/commit/ccb1bb5d3a
2023-09-20[rubygems/rubygems] Verified working on mri/jruby/truffleruby with specs on ↵Samuel Giddins
rubygems.org https://github.com/rubygems/rubygems/commit/4f51741cc6