Граф коммитов

65416 Коммитов

Автор SHA1 Сообщение Дата
Yusuke Endoh 8ccc12118e Keep libpath length non-negative [Bug #16784]
When runtime_libruby_path does not include '/', it attempts to call
rb_str_resize with negative length. This change makes sure that the
length non-negative.

Co-Authored-By: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
2021-03-06 00:50:09 +09:00
git 261b746dca * 2021-03-06 [ci skip] 2021-03-06 00:18:47 +09:00
Jeremy Evans 14e1739ff3 [ruby/irb] Make save-history extension safe for concurrent use
This makes the save-history extension check for modifications to
the history file before saving it.  If the history file was modified
after the history was loaded and before it was saved, append only
the new history lines to the history file.

This can result in more lines in the history file than SAVE_HISTORY
allows.  However, that will be fixed the next time irb is run and
the history is saved.

Fixes [Bug #13654]

https://github.com/ruby/irb/commit/041ef53845
2021-03-06 00:18:32 +09:00
aycabta 182cde8dfb [ruby/irb] Add a test for not continuing when endless range at eol
https://github.com/ruby/irb/commit/1020ac9c65
2021-03-05 22:03:11 +09:00
Jeremy Evans 2cc5827fdc [ruby/irb] Do not continue line if last expression is an endless range
Fixes [Bug #14824]

https://github.com/ruby/irb/commit/63414f8465
2021-03-05 22:03:05 +09:00
卜部昌平 45b3a5f7de rb_sym_interned_p: doesn't exist
Deleted decades ago in commit 6e0fed271c

Note also that we eventually ended up reinventing this exact same
functionality.  It is called rb_check_id() now.
2021-03-05 17:37:16 +09:00
卜部昌平 7715d428f1 rb_enc_symname_type: indent 2021-03-05 16:33:29 +09:00
卜部昌平 0a43f0de27 rb_enc_symname_type: refactor reduce goto
A bit readable to me.
2021-03-05 16:33:29 +09:00
David Carlier 0ead818d81 Generating note.GNU-stack section for FreeBSD on x86.
Not enabling for ELF in general as not all platform support it
 (e.g. NetBSD, implictly stack never executable).
2021-03-05 14:33:52 +13:00
git 99c3397860 * 2021-03-05 [ci skip] 2021-03-05 10:26:26 +09:00
David Carlier c230ccdba6 coroutine arm64 generating note.GNU-stack section for linux. 2021-03-05 14:26:00 +13:00
Nobuyoshi Nakada 446d000e11
Strip trailing spaces [ci skip] 2021-03-04 11:40:43 +09:00
Nobuyoshi Nakada dea08758be
Check for trailing spaces 2021-03-04 11:40:43 +09:00
git 1876782155 * 2021-03-04 [ci skip] 2021-03-04 11:31:57 +09:00
Nobuyoshi Nakada bf089d786a
Fixed syntax error with gcc on macOS
Security/Authorization.h defines AuthorizationExternalForm by
using clang extension which allows variably modified types in a
file scope.  As we just need high-level accessors only, include
Security/SecRandom.h instead.
2021-03-04 11:28:39 +09:00
git 68f515cf5e * 2021-03-03 [ci skip] 2021-03-03 03:05:10 +09:00
Peter Zhu 0bd1bc559f Don't use mmap on platforms that have large OS page sizes 2021-03-02 10:04:49 -08:00
Peter Zhu 6d834371c0 Fix typo 2021-03-02 10:04:49 -08:00
卜部昌平 33dc0a070a RBASIC_SET_CLASS_RAW: follow strict aliasing rule
Instead of rather euphemistic struct cast, just reomve the const
qualifier and assign directly.  According to ISO/IEC 9899:2018 section
6.5 paragraph 7, `VALUE` and `const VALUE` are allowed to alias (but two
distinct structs are not, even when their structures are the same).
[Bug #17540]
2021-03-02 17:47:28 +09:00
git f7c342f875 * 2021-03-02 [ci skip] 2021-03-02 09:23:55 +09:00
Marc-Andre Lafortune 61f417ac7d [lib/benchmark] Use $stdout instead of STDOUT [Bug #17600] 2021-03-01 19:23:21 -05:00
Benoit Daloze 80e2c45f55 Skip spec which does not work on mingw
* https://github.com/ruby/ruby/runs/1994688198
  ruby 3.1.0dev (2021-02-27T16:42:17Z master 8305a48413) [x64-mingw32]
  C-API Thread function rb_thread_call_without_gvl runs a C function with the global lock unlocked and unlocks IO with the generic RUBY_UBF_IO
  Example took longer than the configured timeout of 60.0s
2021-02-28 12:24:42 +01:00
git 5c9079759d * 2021-02-28 [ci skip] 2021-02-28 01:42:49 +09:00
Benoit Daloze 8305a48413 Add --timeout to try to find hanging spec 2021-02-27 17:42:17 +01:00
Benoit Daloze 36dde35e02 Update to ruby/spec@37e52e5 2021-02-27 13:00:26 +01:00
Jeremy Evans dbea0be13d [ruby/irb] Update help message for next context-mode of 4
While here, fixing tab/space issues in help message, and sync
rdoc for IRB class to match the help message.

https://github.com/ruby/irb/commit/ef8e3901cc
2021-02-27 06:51:12 +09:00
Aaron Patterson d45466dc5b
Oops! Add another test and fix to_proc implementation 2021-02-26 10:06:56 -08:00
git 3d8e373a58 * 2021-02-27 [ci skip] 2021-02-27 02:59:14 +09:00
Aaron Patterson 0590e9b677
Fiddle::Function responds to to_proc
This lets us cast a Fiddle::Function to a block, allowing is to write
things like:

```ruby
f = Fiddle::Function.new(@libc['strcpy'], [TYPE_VOIDP, TYPE_VOIDP], TYPE_VOIDP)
define_method :strcpy, &f
```
2021-02-26 09:57:13 -08:00
Aaron Patterson cfc23903df
Revert "Add tests for bug 17652"
This reverts commit a9920e7782.
2021-02-25 16:31:24 -08:00
aycabta f0743dd2a4 [ruby/reline] Version 0.2.4
https://github.com/ruby/reline/commit/462f971bd3
2021-02-26 05:24:01 +09:00
git 04154b65e8 * 2021-02-26 [ci skip] 2021-02-26 04:02:09 +09:00
Peter Zhu a9920e7782 Add tests for bug 17652 2021-02-25 11:01:50 -08:00
Peter Zhu 1c0e79e87b Disable auto compaction on platforms that do not support it 2021-02-25 11:01:50 -08:00
Peter Zhu 1e13548953 Use mmap for allocating heap pages 2021-02-25 11:01:50 -08:00
aycabta fda162c776 [ruby/irb] Version 1.3.4
https://github.com/ruby/irb/commit/ab9852ccc5
2021-02-25 22:11:48 +09:00
卜部昌平 294c244ac8 rb_random_int: ended before it begins
It existed since f3d022543e until
9676023607.  No official releases included
the actual function.  The declaration shall be deleted.
2021-02-25 16:26:54 +09:00
Aaron Patterson 08d5db4064
Reverting PR #4221
It seems this breaks tests on Solaris, so I'm reverting it until we
figure out the right fix.

  http://rubyci.s3.amazonaws.com/solaris11-sunc/ruby-master/log/20210224T210007Z.fail.html.gz
2021-02-24 13:44:10 -08:00
git f3c8e477e1 * 2021-02-25 [ci skip] 2021-02-25 05:25:48 +09:00
Peter Zhu 59fb5d4fa3 Add tests for bug 17652 2021-02-24 12:25:30 -08:00
Peter Zhu a80366c922 Disable auto compaction on platforms that do not support it 2021-02-24 12:25:30 -08:00
Peter Zhu 785f5eb8f0 Use mmap for allocating heap pages 2021-02-24 12:25:30 -08:00
Kazuhiro NISHIYAMA 09f284c052
Update bundled_gems 2021-02-24 20:01:44 +09:00
Nobuyoshi Nakada 9d8c66fd6a
rb_fiber_terminate never returns 2021-02-24 04:09:57 +09:00
git 75fbea91ac * 2021-02-24 [ci skip] 2021-02-24 04:02:22 +09:00
Nobuyoshi Nakada a12e950816
Revert "Enclose crtitical sections in `thread_exclusive` block"
19cc24b34b and fixups.
2021-02-24 03:13:07 +09:00
Nobuyoshi Nakada 7563d542d6
Use the system getenv in setup_debug_log
As ruby_set_debug_option() is called before ruby_sysinit(),
CRITICAL_SECTIONs are not initialized yet.
2021-02-23 23:11:44 +09:00
Nobuyoshi Nakada 819dd464de
Fixed commit miss at 41eb4fbf86 2021-02-23 21:23:46 +09:00
Nobuyoshi Nakada 5a4742a0b4
Make uenvarea thread exclusive 2021-02-23 21:19:25 +09:00
Nobuyoshi Nakada 41eb4fbf86
Fixed commit miss at 19cc24b34b 2021-02-23 20:46:40 +09:00