aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix memory corruption in Enumerable#reverse_each [ruby-dev:50867] [Bug #16354]Kazuki Tsujimoto2019-11-192-3/+22
|
* Revert "[ripper] Quoted label without expression must be a local variable"Nobuyoshi Nakada2019-11-202-61/+34
| | | | | This reverts commit 0b8c73aa65add5c57b46b0cfdf4e661508802172, which seems breaking RVALUE consistency check.
* * 2019-11-20 [ci skip]git2019-11-201-1/+1
|
* Avoid needless object allocationKazuki Tsujimoto2019-11-193-2/+7
|
* Add a testKazuhiro NISHIYAMA2019-11-191-3/+23
| | | | | | and rename from b.rb [ruby-core:95055] [Bug #16177]
* [ripper] Quoted label without expression must be a local variableNobuyoshi Nakada2019-11-192-34/+61
|
* care about TAG_FATAL.Koichi Sasada2019-11-191-1/+4
| | | | | | | | | | | TAG_FATAL represents interpreter closing state and ec->errinfo contains FIXNUM (eTerminateSignal, etc). If we need to change the state, then errinfo is also changed because TAG_RAISE assumes that ec->errinfo contains a Exception object. Without this patch, TAG_FATAL is ignored and no ec->errinfo change so that it causes critical issue. [Bug #16177]
* Configure static extensions only if in chargeNobuyoshi Nakada2019-11-191-1/+5
| | | | | Get rid of races in parallel configuration when using the ext/Setup file.
* peep-hole optimize VM instructions卜部昌平2019-11-191-18/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some minor optimizations. Calculating ------------------------------------- ours trunk vm2_regexp 8.479M 8.346M i/s - 6.000M times in 0.707612s 0.718916s vm2_regexp_invert 8.605M 8.350M i/s - 6.000M times in 0.697298s 0.718576s Comparison: vm2_regexp ours: 8479223.3 i/s trunk: 8345893.8 i/s - 1.02x slower vm2_regexp_invert ours: 8604647.4 i/s trunk: 8349852.8 i/s - 1.03x slower Calculating ------------------------------------- ours+jit trunk+jit Optcarrot Lan_Master.nes 68.603 64.167 fps Comparison: Optcarrot Lan_Master.nes ours+jit: 68.6 fps trunk+jit: 64.2 fps - 1.07x slower
* Remove TEST_BUNDLED_GEMS_ALLOW_FAILURESKazuhiro NISHIYAMA2019-11-192-4/+0
| | | | https://github.com/seattlerb/minitest/pull/798 is closed
* make functions static卜部昌平2019-11-1916-42/+38
| | | | | | | These functions are used from within a compilation unit so we can make them static, for better binary size. This changeset reduces the size of generated ruby binary from 26,590,128 bytes to 26,584,472 bytes on my macihne.
* Clarify documentation for `InstructionSequence#compile`.Samuel Williams2019-11-191-2/+14
| | | | | | | | We incorrectly assumed that the `file` argument should be the file name and caused https://github.com/scoutapp/scout_apm_ruby/issues/307 because exception backtrace did not contain correct path. This documentation clarifies the role of the different arguments and provides extra examples.
* Suppress `stty` error on Apple TerminalNobuyoshi Nakada2019-11-191-1/+1
| | | | | | | | | | | | `stty` called in `Reline::ANSI.deprep` command shows the following error message on macOS Apple Terminal, with some settings. ``` $ LANG=C irb irb(main):001:0> stty: 'standard input': unable to perform all requested operations stty: 'standard input': unable to perform all requested operations ```
* Prefer dedecated assertionsNobuyoshi Nakada2019-11-191-4/+4
|
* pack is not using invokebuiltin anymoreTakashi Kokubun2019-11-181-6/+3
|
* Fix glob base in bundler.gemspecKazuhiro NISHIYAMA2019-11-191-1/+2
|
* Skip some tests if extracted from tarballKazuhiro NISHIYAMA2019-11-191-0/+9
|
* Allow unknown if ruby coreKazuhiro NISHIYAMA2019-11-191-2/+10
|
* * 2019-11-19 [ci skip]git2019-11-191-1/+1
|
* test/-ext-/string/test_fstring.rb: suppress a warning for taintYusuke Endoh2019-11-181-1/+6
|
* NEWS: Add an example for the warning of "yield in singleton class"Yusuke Endoh2019-11-181-0/+7
|
* Dependents on probes.h need the dummy header tooNobuyoshi Nakada2019-11-181-0/+3
|
* Update dependenciesNobuyoshi Nakada2019-11-1819-308/+109
|
* Build ruby-runnerNobuyoshi Nakada2019-11-181-1/+1
|
* Skip dependencies on timestamp filesNobuyoshi Nakada2019-11-181-0/+1
|
* Renamed assembly file like as e64f71f812324d098bed12ed68c2bc1d6e780c90Nobuyoshi Nakada2019-11-181-0/+0
|
* delete unused codes卜部昌平2019-11-183-8/+1
| | | | Suppress compiler warnings.
* should not use __func__Koichi Sasada2019-11-181-1/+1
|
* rb_tainted_str_new_with_enc is no longer usedNobuyoshi Nakada2019-11-181-7/+0
|
* add casts.Koichi Sasada2019-11-182-3/+3
| | | | | add casts to avoid compile error. http://ci.rvm.jp/results/trunk_clang_39@silicon-docker/2402215
* catch up last commit.Koichi Sasada2019-11-181-1/+1
| | | | Array#pack uses `opt_invokebuiltin_delegate_leave` now.
* vm_invoke_builtin_delegate with start index.Koichi Sasada2019-11-184-33/+73
| | | | | | | | | | | | | | | | | opt_invokebuiltin_delegate and opt_invokebuiltin_delegate_leave invokes builtin functions with same parameters of the method. This technique eliminate stack push operations. However, delegation parameters should be completely same as given parameters. (e.g. `def foo(a, b, c) __builtin_foo(a, b, c)` is okay, but __builtin_foo(b, c) is not allowed) This patch relaxes this restriction. ISeq has a local variables table which includes parameters. For example, the method defined as `def foo(a, b, c) x=y=nil`, then local variables table contains [a, b, c, x, y]. If calling builtin-function with arguments which are sub-array of the lvar table, use opt_invokebuiltin_delegate instruction with start index. For example, `__builtin_foo(b, c)`, `__builtin_bar(c, x, y)` is okay, and so on.
* update deps.Koichi Sasada2019-11-181-2/+3
| | | | https://travis-ci.org/ruby/ruby/jobs/613242256#L2205
* * remove trailing spaces. [ci skip]git2019-11-181-1/+1
|
* Update NEWS for $SAFE/taint changesJeremy Evans2019-11-181-0/+9
|
* Remove mention of $SAFE and taint from doc [ci skip]Jeremy Evans2019-11-183-39/+0
|
* Deprecate rb_eval_cmd, add rb_eval_cmd_kwJeremy Evans2019-11-184-5/+13
| | | | | | | | rb_eval_cmd takes a safe level, and now that $SAFE is deprecated, it should be deprecated as well. Replace with rb_eval_cmd_kw, which takes a keyword flag. Switch the two callers to this function.
* [ruby/strscan] Remove taint supportJeremy Evans2019-11-181-16/+8
| | | | | | Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions.
* [ruby/openssl] Remove taint supportJeremy Evans2019-11-183-11/+0
| | | | | | Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions.
* [ruby/io-console] Remove taint supportJeremy Evans2019-11-181-1/+0
| | | | | | Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions.
* [ruby/etc] Remove taint supportJeremy Evans2019-11-181-3/+4
| | | | | | | | | Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions. Still untaint the tmpdir object on Ruby <2.7, as returning a tainted string there could cause problems.
* [ruby/rss] Only check taint on Ruby <2.7Jeremy Evans2019-11-181-1/+1
| | | | Ruby 2.7 deprecates taint and it no longer has an effect.
* [ruby/rexml] Only taint on Ruby <2.7Jeremy Evans2019-11-181-2/+2
| | | | Ruby 2.7 deprecates taint and it no longer has an effect.
* More fixes for $SAFE/taint post mergingJeremy Evans2019-11-185-59/+29
|
* Deprecate taint/trust and related methods, and make the methods no-opsJeremy Evans2019-11-18201-2901/+2319
| | | | | | This removes the related tests, and puts the related specs behind version guards. This affects all code in lib, including some libraries that may want to support older versions of Ruby.
* Warn on access/modify of $SAFE, and remove effects of modifying $SAFEJeremy Evans2019-11-1859-745/+277
| | | | | | | | | | | | | | | | | This removes the security features added by $SAFE = 1, and warns for access or modification of $SAFE from Ruby-level, as well as warning when calling all public C functions related to $SAFE. This modifies some internal functions that took a safe level argument to no longer take the argument. rb_require_safe now warns, rb_require_string has been added as a version that takes a VALUE and does not warn. One public C function that still takes a safe level argument and that this doesn't warn for is rb_eval_cmd. We may want to consider adding an alternative method that does not take a safe level argument, and warn for rb_eval_cmd.
* * 2019-11-18 [ci skip]git2019-11-181-1/+1
|
* Remove unnecessary checkaycabta2019-11-181-1/+1
|
* [ruby/irb] Remove ruby-token.rb from spec.filesaycabta2019-11-171-1/+0
| | | | https://github.com/ruby/irb/commit/0180dc74bc
* [ruby/irb] Version 1.1.0.pre.4aycabta2019-11-171-1/+1
| | | | https://github.com/ruby/irb/commit/4945d0e676