Yusuke Endoh
4948982b53
Update TypeProf to 0.4.2
2020-11-06 13:28:58 +09:00
Aaron Patterson
6d17c9fa5d
gc_rest can change the total pages, so we need to do that first
2020-11-05 12:28:50 -08:00
Aaron Patterson
d8da5c1983
add asserts to find crash
2020-11-05 12:27:09 -08:00
Aaron Patterson
ab5f2fa4fb
Refactor verification method
...
Combine everything in to one C function
2020-11-05 11:13:04 -08:00
Aaron Patterson
68a3a2d90f
take VM lock when mutating the heap
2020-11-05 08:51:40 -08:00
git
193edbde91
* 2020-11-06 [ci skip]
2020-11-06 00:12:16 +09:00
Soutaro Matsumoto
8014ed9bd2
Update RBS & TypeProf ( #3732 )
...
* Bundle rbs 0.16.0
* Bundle typeprof 0.4.1
2020-11-06 00:11:48 +09:00
NARUSE, Yui
3407b7d8a6
Revert "Prefer #send over #__send__ when it is clear there is no possible conflict"
...
This reverts commit 4dba0c1a8e
.
Matz's comment is "send is not deprecated. __send__ is safer".
But "Prefer #send over #__send__" is not reasonable.
2020-11-05 20:54:34 +09:00
NARUSE, Yui
b29fe5eb2d
Add description __send__ is safer
2020-11-05 20:51:48 +09:00
Hiroshi SHIBATA
b2ca183cc9
Promote un.rb to the default gems. It's preparation for 3.0.0-preview2.
2020-11-05 20:21:31 +09:00
Benoit Daloze
4dba0c1a8e
Prefer #send over #__send__ when it is clear there is no possible conflict
...
* Reverts part of 3198e7abd7
.
* If the rule is #send should be deprecated, that should be ruled by matz,
there is no such rule currently and gems seem to prefer #send
overwhelmingly.
2020-11-05 11:23:27 +01:00
Marc-Andre Lafortune
2aa9a50dcc
[ruby/ostruct] Update version
2020-11-04 17:52:03 -05:00
Marc-Andre Lafortune
015b023820
[ruby/ostruct] Restore `ostruct` doc
2020-11-04 17:52:03 -05:00
Marc-Andre Lafortune
6f24be8565
Revert "Make `marshal_load` public"
...
This reverts commit ee7cc6ac35
.
I'm not sure I agree with the spec, but I just tweaked it.
2020-11-04 17:52:03 -05:00
git
9232f91827
* 2020-11-05 [ci skip]
2020-11-05 07:41:17 +09:00
Aaron Patterson
70680feeea
Simplify setting instance variables
...
Since T_OBJECT objects come to life as embedded objects, that means that
ROBJECT_NUMIV will always return a _minimum_ of ROBJECT_EMBED_LEN_MAX.
If ivup.index is *greater* than ROBJECT_NUMIV, then we know that the
object *must not* be an embedded object. Thus we can skip the
ROBJECT_EMBED_LEN_MAX check as well as initializing internals of
embedded objects.
2020-11-04 14:40:50 -08:00
Aaron Patterson
a8581ce673
ensure T_OBJECT objects have internals initialized
2020-11-04 14:40:50 -08:00
Kazuhiro NISHIYAMA
704fb0b815
Suppress a warning
...
```
transient_heap.c: In function ‘transient_heap_allocatable_header’:
transient_heap.c:347:37: warning: comparison of integer expressions of different signedness: ‘int16_t’ {aka ‘short int’} and ‘long unsigned int’ [-Wsign-compare]
347 | TH_ASSERT(block->info.index <= TRANSIENT_HEAP_USABLE_SIZE);
| ^~
```
2020-11-04 18:45:48 +09:00
Yusuke Endoh
d42c68e912
Bundle TypeProf 0.4.0
2020-11-04 17:07:01 +09:00
Hiroshi SHIBATA
f211f9cda4
use https
2020-11-04 13:30:27 +09:00
卜部昌平
ae53fda013
.travis.yml: delete x86_64
...
Is already covered by Github Actions.
2020-11-04 12:11:13 +09:00
卜部昌平
4c6700964d
.travis.yml: delete sanitizer tests
...
They were not working.
2020-11-04 12:11:13 +09:00
卜部昌平
8eca97c049
.github/workflows/baseruby.yml: add
...
Translate a part of .travis.yml into a Github Actions workflow.
2020-11-04 12:11:13 +09:00
Jeremy Evans
bf1047c757
Update NEWS for Array methods change
2020-11-03 14:09:20 -08:00
Jeremy Evans
2a294d499b
Make Array methods return Array instances instead of subclass instances
...
This changes the following methods to return Array instances instead
of subclass instances:
* Array#drop
* Array#drop_while
* Array#flatten
* Array#slice!
* Array#slice/#[]
* Array#take
* Array#take_while
* Array#uniq
* Array#*
Fixes [Bug #6087 ]
2020-11-03 14:01:38 -08:00
git
7d6c72dc06
* 2020-11-04 [ci skip]
2020-11-04 00:55:00 +09:00
Kazuki Tsujimoto
700637570f
Rightward assignment is replaced by one-line pattern matching
2020-11-04 00:51:44 +09:00
Yusuke Endoh
c3e2dd072a
test/ruby/test_gc_compact.rb: suppress "assigned but unused variable"
2020-11-03 23:32:40 +09:00
Kazuhiro NISHIYAMA
fa7484019d
Add links to the tickets [ci skip]
2020-11-03 10:25:52 +09:00
Luciano Sousa
4f7d27a210
Fix typo in the auto compact announcement [ci-skip]
...
I'm sorry, but I think there is a typo here.
This fix will help folks who are trying to translate this announcement to other languages. I hope this is not a joke and I didn't get it 🙏
2020-11-02 16:48:21 -08:00
git
46f3b68fbf
* 2020-11-03 [ci skip]
2020-11-03 07:43:29 +09:00
Aaron Patterson
67b2c21c32
Add `GC.auto_compact= true/false` and `GC.auto_compact`
...
* `GC.auto_compact=`, `GC.auto_compact` can be used to control when
compaction runs. Setting `auto_compact=` to true will cause
compaction to occurr duing major collections. At the moment,
compaction adds significant overhead to major collections, so please
test first!
[Feature #17176 ]
2020-11-02 14:42:48 -08:00
Nobuyoshi Nakada
79b242260b
ripper: Invalid pragma value warning
2020-11-02 22:49:42 +09:00
Nobuyoshi Nakada
539b89075a
Compare boolean values for parser pragma locale-insensitively
2020-11-02 18:24:45 +09:00
Nobuyoshi Nakada
bdcfa70bbd
strip trailing spaces [ci skip]
2020-11-02 17:31:50 +09:00
Koichi Sasada
5fefb53249
Copy for Ractor.send() without marshal.
...
Now copying objects do not need marshal protocol.
2020-11-02 03:31:58 +09:00
git
1581da9993
* 2020-11-02 [ci skip]
2020-11-02 01:37:56 +09:00
Koichi Sasada
db7a3b63ba
suppport Ractor.send(move: true) for more deta
...
This patch allows to move more data types.
2020-11-02 01:37:28 +09:00
Kazuki Tsujimoto
963359a762
Use the suppress_warning helper instead of doing it manually
2020-11-01 19:00:22 +09:00
Kazuki Tsujimoto
7282f3113d
Suppress "One-line pattern matching is experimental" warning
2020-11-01 18:19:58 +09:00
Kazuki Tsujimoto
e0e2492cd3
Fix Rubyspec (ruby-2.7) failures
...
https://github.com/ruby/ruby/runs/1337845174
2020-11-01 17:37:03 +09:00
Kazuki Tsujimoto
e03e1982bd
Change NODE layout for pattern matching
...
I prefer pconst to be the first element of NODE.
Before:
| ARYPTN | FNDPTN | HSHPTN
---+--------+--------+-----------
u1 | imemo | imemo | pkwargs
u2 | pconst | pconst | pconst
u3 | apinfo | fpinfo | pkwrestarg
After:
| ARYPTN | FNDPTN | HSHPTN
---+--------+--------+-----------
u1 | pconst | pconst | pconst
u2 | imemo | imemo | pkwargs
u3 | apinfo | fpinfo | pkwrestarg
2020-11-01 16:19:07 +09:00
Rei Odaira
305c79af2f
ext/socket/rubysocket.h: avoid the conflict of T_DATA definition in AIX
2020-11-01 00:12:55 -05:00
Koichi Sasada
0e33028d69
use one-line pattern matching for warning tests
2020-11-01 13:55:54 +09:00
git
b1e7c3a31f
* 2020-11-01 [ci skip]
2020-11-01 13:36:02 +09:00
Kazuki Tsujimoto
b601532411
Pattern matching is no longer experimental
2020-11-01 13:33:58 +09:00
wanabe
4f8d9b0db8
Revert "Use adjusted sp on `iseq_set_sequence()`" and "Delay `remove_unreachable_chunk()` after `iseq_set_sequence()`"
...
This reverts commit 3685ed7303
and 5dc107b03f
.
Because of some CI failures https://github.com/ruby/ruby/pull/3404#issuecomment-719868313 .
2020-10-31 11:56:41 +09:00
Nobuyoshi Nakada
ea8fc7fdd3
[DOC] standard_library.rdoc: tweaked to make style consistent
...
[ci skip]
2020-10-31 11:06:01 +09:00
Nobuyoshi Nakada
dd2f99d94a
Removed unused variable
2020-10-31 10:51:57 +09:00
wanabe
3685ed7303
Use adjusted sp on `iseq_set_sequence()`
2020-10-31 09:18:37 +09:00