summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/bigdecimal] Rewrite allocation functionsKenta Murata2022-11-132-72/+90
| | | | | | | * Rename them * Make allocation count operations atomic https://github.com/ruby/bigdecimal/commit/a5ab34a115
* [ruby/bigdecimal] Twak GetPrecisionInt and rename it to check_int_precisionKenta Murata2022-11-131-9/+16
| | | | https://github.com/ruby/bigdecimal/commit/69d0588a3b
* [ruby/bigdecimal] Tweak check_rounding_mode_optionKenta Murata2022-11-132-12/+21
| | | | https://github.com/ruby/bigdecimal/commit/e1c6c9be25
* [ruby/bigdecimal] Rewrite check_rounding_mode functionKenta Murata2022-11-132-46/+70
| | | | | | Use table-lookup algorithm instead of consecutive if-statements. https://github.com/ruby/bigdecimal/commit/23eaff3ae5
* [ruby/bigdecimal] [Doc] Fix the document of n_significant_digitsKenta Murata2022-11-131-9/+9
| | | | https://github.com/ruby/bigdecimal/commit/91b72a9341
* [ruby/bigdecimal] Make GetVpValue inlineKenta Murata2022-11-131-1/+1
| | | | https://github.com/ruby/bigdecimal/commit/1b642e2e59
* [ruby/bigdecimal] Make BigDecimal_double_fig inlineKenta Murata2022-11-131-1/+1
| | | | https://github.com/ruby/bigdecimal/commit/4ecf04da7a
* Migrate our resolver engine to PubGrubHiroshi SHIBATA2022-11-1275-3152/+2710
| | | | | | https://github.com/rubygems/rubygems/pull/5960 Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
* [ruby/irb] Simplify info command's testsStan Lo2022-11-111-154/+136
| | | | | | (https://github.com/ruby/irb/pull/440) https://github.com/ruby/irb/commit/5942949226
* [ruby/net-http] Update lib/net/http.rbBurdette Lamar2022-11-111-1/+1
| | | | | https://github.com/ruby/net-http/commit/16d042fad6 Co-authored-by: Peter Zhu <peter@peterzhu.ca>
* [ruby/net-http] Prettify class hierarchies in Net::HTTPBurdetteLamar2022-11-111-92/+104
| | | | https://github.com/ruby/net-http/commit/4a5732e210
* YJIT: Fix staying in invalidated code after proc callsAlan Wu2022-11-111-5/+2
| | | | | | | | | | | | Previously, there is no instruction boundary patch point after the call to a non-leaf C function we generate for OPTIMIZED_METHOD_TYPE_CALL. This meant that if code GC is triggered while inside the C function, we would keep running invalidated code when we return from the C function. This had the effect of running stale branch stubs, jumping to bad code, etc. Use jit_prepare_routine_call() to make sure we exit from the invalidated region as soon as possible after the C call in case of invalidation.
* Enable only master-branchHiroshi SHIBATA2022-11-111-1/+1
|
* Test with topic-branchHiroshi SHIBATA2022-11-111-1/+1
|
* Use secrets.SCORECARD_READ_TOKENHiroshi SHIBATA2022-11-111-1/+1
|
* Try to use ossf/scorecardsHiroshi SHIBATA2022-11-111-0/+72
|
* Merge RubyGems/Bundler master from ee2f8398324af4bc1b95f7565ce2fda98126e026v3_2_0_preview3Hiroshi SHIBATA2022-11-1110-14/+79
|
* [rubygems/rubygems] Store last check even when upgrade is not available and ↵Josef Šimánek2022-11-113-5/+77
| | | | | | fix test. https://github.com/rubygems/rubygems/commit/bcffc2b0a5
* [rubygems/rubygems] Use file in XDG_STATE_HOME directory to store last ↵Josef Šimánek2022-11-115-21/+57
| | | | | | update check timestamp. https://github.com/rubygems/rubygems/commit/0fbc4ace8a
* [rubygems/rubygems] Add 'call for update' to RubyGems install command.Josef Šimánek2022-11-116-0/+243
| | | | https://github.com/rubygems/rubygems/commit/05811f8248
* [rubygems/rubygems] github source should default to secure protocolJason Karns2022-11-112-3/+3
| | | | | | | | Bundler 2 switched to secure https here https://github.com/rubygems/rubygems/commit/c2e81f8ff63613871cc8b52653c5e176f8dafde3 Insecure protocols should be avoided to prevent MITM attacks. https://github.com/rubygems/rubygems/commit/758413364a
* Allow a float error for Regexp.timeoutYusuke Endoh2022-11-111-2/+6
| | | | | | | | | | | | | | | | | The tests failed on windows https://github.com/ruby/ruby/actions/runs/3440997073/jobs/5740085169#step:18:62 ``` 1) Failure: TestRegexp#test_s_timeout [D:/a/ruby/ruby/src/test/ruby/test_regexp.rb:1586]: <0.30000000000000004> expected but was <0.3>. 2) Failure: TestRegexp#test_timeout_shorter_than_global [D:/a/ruby/ruby/src/test/ruby/test_regexp.rb:1631]: <0.30000000000000004> expected but was <0.3>. ```
* wasm/README.md: Add a note about the Ruby built for wasm. [ci skip]Jun Aruga2022-11-111-0/+10
| | | | | | | | | | | | | | | | | | | | The Ruby built for wasm cannot be execute without a WebAssembly runtime. ``` $ ruby-wasm32-wasi/usr/local/bin/ruby -e 'puts "a"' bash: ruby-wasm32-wasi/usr/local/bin/ruby: cannot execute binary file: Exec format error ``` Because the Ruby's file type is different from the one built normally, that is the `/usr/local/ruby-3.2.0-preview2/bin/ruby` below. ``` $ file ruby-wasm32-wasi/usr/local/bin/ruby ruby-wasm32-wasi/usr/local/bin/ruby: WebAssembly (wasm) binary module version 0x1 (MVP) $ file /usr/local/ruby-3.2.0-preview2/bin/ruby /usr/local/ruby-3.2.0-preview2/bin/ruby: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=a37822085e285c0971159982e7642dda88cea606, for GNU/Linux 3.2.0, with debug_info, not stripped ```
* [ruby/irb] Transform ls's --grep/-G option to keyword argsTakashi Kokubun2022-11-103-0/+48
| | | | | | | | | | | (https://github.com/ruby/irb/pull/437) * Transform ls's --grep/-G option to keyword args * Make --grep less flexible * Support -g instead of --grep * Suppress warnings from symbol aliases
* [rubygems/rubygems] Update bundler/spec/bundler/shared_helpers_spec.rbYusuke Endoh2022-11-101-1/+1
| | | | | https://github.com/rubygems/rubygems/commit/8b1481ba77 Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* [rubygems/rubygems] Load "bundler/setup" in lib/rubygems.rbYusuke Endoh2022-11-104-0/+11
| | | | | | | | | | | | | | | Ruby interpreter loads some special gems at startup: did_you_mean, error_highlight, and syntax_suggest. These gems are loaded before `bundler/setup` is loaded by `RUBYOPT=-rbundler/setup`. So, the versions of the gems are not controllable by Gemfile. This change will `require "bundler/setup"` in rubygems.rb (i.e., before the special gems are loaded). Now `bundle exec` sets an environment variable `BUNDLER_SETUP`, and rubygems requires the variable if defined. See also: https://bugs.ruby-lang.org/issues/19089 https://github.com/rubygems/rubygems/commit/963cb65a2d
* Run EnvUtil.apply_timeout_scale outside of assert_separatelyYusuke Endoh2022-11-111-10/+6
| | | | It does not work well in assert_separately
* [ruby/racc] Make racc test more flexible (for JRuby).Thomas E. Enebo2022-11-101-0/+2
| | | | | | | | | | JRuby uses these same files for testing racc. The existing logic will not find 'racc' in a JRuby project checkout. This change allows it to work by just assuming 'ruby -S racc' when running tests. This will not change C Ruby's detection when setting up tests (since earlier checks will find racc). https://github.com/ruby/racc/commit/b74ce5e018
* YJIT: Invalidate JIT code only for ISEQ_TRACE_EVENTS (#6695)Takashi Kokubun2022-11-102-4/+54
|
* Define YJIT_STATS on --enable-yjit=stats (#6710)Takashi Kokubun2022-11-101-0/+1
|
* Extract `rb_shape_get_parent` helperJemma Issroff2022-11-104-8/+15
| | | | | Extract an `rb_shape_get_parent` method instead of continually calling `rb_shape_get_shape_by_id(shape->parent_id)`
* Remove inconsistencyTakashi Kokubun2022-11-101-2/+2
| | | | | I meant they should be also fixed in https://github.com/ruby/ruby/pull/6694#discussion_r1019445575
* Enable --yjit-stats for release builds (#6694)Jimmy Miller2022-11-103-28/+24
| | | | | | | | | | | | * Enable --yjit-stats for release builds In order for people in the real world to report information about how their application runs with YJIT, we want to expose stats without requiring rebuilding ruby. We can do this without overhead, with the exception of count ratio in yjit, since this relies on the interpreter also counting instructions. This change exposes those stats, while not showing ratio in yjit if we are not in a stats build. * Update yjit.rb Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com> Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
* [ruby/irb] Make $ and @ default aliasesTakashi Kokubun2022-11-102-3/+4
| | | | | | (https://github.com/ruby/irb/pull/438) https://github.com/ruby/irb/commit/0613589476
* [Bug #19100] [DOC] Add NEWS about PRNG update and incompatiblityNobuyoshi Nakada2022-11-111-0/+16
|
* Set up EXTSTATIC before checking itAlan Wu2022-11-101-17/+17
| | | | | The bundle_loader check for darwin checks EXTSTATIC, but previously the setup for the variable comes after the check. I had trouble building using --with-static-linked-ext on darwin before this change.
* Remove numiv from RObjectJemma Issroff2022-11-109-106/+16
| | | | | | | Since object shapes store the capacity of an object, we no longer need the numiv field on RObjects. This gives us one extra slot which we can use to give embedded objects one more instance variable (for a total of 3 ivs). This commit removes the concept of numiv from RObject.
* Transition shape when object's capacity changesJemma Issroff2022-11-1028-202/+482
| | | | | | | | | | | | | | | | This commit adds a `capacity` field to shapes, and adds shape transitions whenever an object's capacity changes. Objects which are allocated out of a bigger size pool will also make a transition from the root shape to the shape with the correct capacity for their size pool when they are allocated. This commit will allow us to remove numiv from objects completely, and will also mean we can guarantee that if two objects share shapes, their IVs are in the same positions (an embedded and extended object cannot share shapes). This will enable us to implement ivar sets in YJIT using object shapes. Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
* Omit test on IO Buffers which relies on String being embeddedJemma Issroff2022-11-101-1/+5
| | | | | | | | | There is currently a bug ([#19084]) in how extended strings work in IO Buffers. Object Shapes changes will make the string in this test extended on 32 bit machines. Since this behavior is currently broken (unrelated to object shapes) on 32 bit machines, this test will then fail. We preemptively omit it so that this commit can be reverted once the bug is fixed.
* Fix bug in array pack with shared stringsJemma Issroff2022-11-102-0/+7
| | | | | If string literals are long and they become shared, we need to make them independent before we can write to them. [Bug #19116]
* Fix compiler issues in test on C99Peter Zhu2022-11-101-1/+1
| | | | | | | | Fixes the following issue when compiling using C99: ext/-test-/rb_call_super_kw/rb_call_super_kw.c ext/-test-/random/loop.c:16:39: error: extra ';' outside of a function [-Werror,-Wextra-semi] RB_RANDOM_DEFINE_INIT_INT32_FUNC(loop);
* [Bug #19100] Add `init_int32` function to `rb_random_interface_t`Nobuyoshi Nakada2022-11-105-12/+51
| | | | | Distinguish initialization by single word from initialization by array.
* Add version to the interface of Random extensionsNobuyoshi Nakada2022-11-105-4/+356
|
* Adjust indents [ci skip]Nobuyoshi Nakada2022-11-102-6/+11
|
* Preprocess for older bison is no longer neededNobuyoshi Nakada2022-11-103-28/+0
|
* Update required Bison version in building_ruby.md [ci skip]yui-knk2022-11-101-1/+1
| | | | See [Feature #19068] for the context.
* Fix exit locations dump (#6703)Eileen M. Uchitelle2022-11-091-3/+27
| | | | | | | | | | | | | While I was working on my RubyConf talk for tracing yjit exit locations I realized that there were exits from the dump code included in the stats data. For example I saw 224 interp leave exits for a simple script that should have had 1 or 2. I realized that the dump code needs to be called _after_ the stats are generated, otherwise the dump code will be counted in the stats exits. I've added a `_dump_locations` method to the `at_exit` for stats generation to ensure that it runs last. I've updated the documentation to add a note that if you call `dump_exit_locations` directly, your stats will include the dump code exits as well.
* [DOC] Enhanced RDoc for IO (#6669)Burdette Lamar2022-11-093-630/+437
|
* Reduce warningsTSUYUSATO Kitsune2022-11-092-12/+10
|
* Use long instead of intTSUYUSATO Kitsune2022-11-092-22/+23
|