Ivo Anjo
649bfbe00d
Fix rb_profile_frames
output includes dummy main thread frame
...
The `rb_profile_frames` API did not skip the two dummy frames that
each thread has at its beginning. This was unlike `backtrace_each` and
`rb_ec_parcial_backtrace_object`, which do skip them.
This does not seem to be a problem for non-main thread frames,
because both `VM_FRAME_RUBYFRAME_P(cfp)` and
`rb_vm_frame_method_entry(cfp)` are NULL for them.
BUT, on the main thread `VM_FRAME_RUBYFRAME_P(cfp)` was true
and thus the dummy thread was still included in the output of
`rb_profile_frames`.
I've now made `rb_profile_frames` skip this extra frame (like
`backtrace_each` and friends), as well as add a test that asserts
the size and contents of `rb_profile_frames`.
Fixes [Bug #18907 ] (<https://bugs.ruby-lang.org/issues/18907 >)
2022-07-26 10:43:44 +09:00
Burdette Lamar
cc29b43c7a
[ruby/rdoc] Move section Directives into section Blocks ( https://github.com/ruby/rdoc/pull/901 )
...
e48e07ef53
2022-07-26 06:31:36 +09:00
git
d7868c79e2
* append newline at EOF. [ci skip]
2022-07-26 05:29:28 +09:00
Peter Zhu
ba098fa151
Sync RDoc
2022-07-25 16:29:14 -04:00
Peter Zhu
8fa66467de
Fix sync_default_gems.rb to use absolute path
2022-07-25 16:29:14 -04:00
Burdette Lamar
43c11f6c49
For rdoc, copy doc/rdoc to doc/ ( #6181 )
2022-07-25 14:58:41 -05:00
dependabot[bot]
382cde96fa
[rubygems/rubygems] Bump rb-sys
...
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys ) from 0.9.20 to 0.9.26.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases )
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.20...v0.9.26 )
---
updated-dependencies:
- dependency-name: rb-sys
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
fe76234cf1
2022-07-26 04:56:40 +09:00
Jemma Issroff
63330ae4ac
Change ROBJECT_TRANSIENT_FLAG to use FL_USER2
2022-07-25 12:08:58 -07:00
git
17534f3eff
* 2022-07-26 [ci skip]
2022-07-26 01:53:16 +09:00
dependabot[bot]
fab5a0e62a
[rubygems/rubygems] Bump rb-sys in /test/rubygems/test_gem_ext_cargo_builder/custom_name
...
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys ) from 0.9.20 to 0.9.26.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases )
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.20...v0.9.26 )
---
updated-dependencies:
- dependency-name: rb-sys
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
8b1d0672a3
2022-07-26 01:53:02 +09:00
Takuya Noguchi
979368b47c
[rubygems/rubygems] Bundler: add deprecation notice of viz to man
...
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
0e1cbfa598
2022-07-25 21:37:13 +09:00
Jean Boussier
31a5586d1e
rb_str_buf_append: add a fast path for ENC_CODERANGE_VALID
...
If the RHS has valid encoding, and both strings have the same
encoding, we can use the fast path.
However we need to update the LHS coderange.
```
compare-ruby: ruby 3.2.0dev (2022-07-21T14:46:32Z master cdbb9b8555
) [arm64-darwin21]
built-ruby: ruby 3.2.0dev (2022-07-25T07:25:41Z string-concat-vali.. 11a2772bdd) [arm64-darwin21]
warming up...
| |compare-ruby|built-ruby|
|:-------------------|-----------:|---------:|
|binary_concat_7bit | 554.816k| 556.460k|
| | -| 1.00x|
|utf8_concat_7bit | 556.367k| 555.101k|
| | 1.00x| -|
|utf8_concat_UTF8 | 412.555k| 556.824k|
| | -| 1.35x|
```
2022-07-25 14:18:52 +02:00
Nobuyoshi Nakada
f61dd38e5c
Wait the test thread to sleep
...
Revert "Synchronize the test thread sleep"
This reverts commit 307835fe31
.
2022-07-25 18:50:08 +09:00
Nobuyoshi Nakada
307835fe31
Synchronize the test thread sleep
2022-07-25 12:01:09 +09:00
Nobuyoshi Nakada
b30b727c24
Fix format specifier
...
`uintptr_t` is not always `unsigned long`, but can be casted to void
pointer safely.
2022-07-25 09:18:36 +09:00
git
1c4aaa3e63
* 2022-07-25 [ci skip]
2022-07-25 08:50:31 +09:00
Nobuyoshi Nakada
91c05b34cd
Bundled gems test needs prepare-gems
...
`prepare-gems` downloads and extracts the bundled gems, and these gems
are built by `build-exts` now.
2022-07-25 08:50:07 +09:00
Nobuyoshi Nakada
b291c972fa
Use built bundled gems in test-bundled-gems
2022-07-25 08:50:07 +09:00
Nobuyoshi Nakada
6af7212004
Make extensions under Gem.extension_api_version
directory
2022-07-24 22:32:07 +09:00
Nobuyoshi Nakada
e0a7e5e131
Kill bundled gem tests when interrupted
2022-07-24 16:36:33 +09:00
git
114f85ecec
* 2022-07-24 [ci skip]
2022-07-24 08:57:27 +09:00
Kaíque Kandy Koga
1cd487d785
[DOC] IO#eof
...
Use IO#eof? instead of I#eof?
2022-07-23 16:57:09 -07:00
Nobuyoshi Nakada
721d154e2f
Remove duplicate code for internal arrays
...
Internal arrays are now created hidden from the start.
2022-07-23 21:42:05 +09:00
Peter Zhu
98a8a496ba
Use rb_ary_tmp_new only for internal arrays
...
rb_ary_tmp_new sets the klass to 0, so it should only be used for
internal arrays.
2022-07-22 15:44:32 -04:00
Ashley Ellis Pierce
244bda7efd
[rubygems/rubygems] Display mfa warnings on gem signin
...
4dc77b7099
Co-authored-by: Jenny Shen <jenny.shen@shopify.com>
2022-07-23 03:42:59 +09:00
Peter Zhu
e199ae3edc
Remove reference counting for all frozen arrays
...
The RARRAY_LITERAL_FLAG was added in commit
5871ecf956
to improve CoW performance for
array literals by not keeping track of reference counts.
This commit reverts that commit and has an alternate implementation that
is more generic for all frozen arrays. Since frozen arrays cannot be
modified, we don't need to set the RARRAY_SHARED_ROOT_FLAG and we don't
need to do reference counting.
2022-07-22 13:29:21 -04:00
git
203de45bd3
* 2022-07-23 [ci skip]
2022-07-23 00:24:50 +09:00
Takuya Noguchi
d77633a695
[rubygems/rubygems] Bundler: update command example in bundle-exec(1)
...
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
28bf5c8b33
2022-07-23 00:24:37 +09:00
st0012
b3be030740
[ruby/reline] Rename dialog_pointer_* to dialog_highlight_*
...
"Pointer" is not what we usually use to describe a selected item.
"Highlight" is a more common word for the scenario so we should use it instead.
b4279d1557
2022-07-22 23:34:49 +09:00
Yusuke Endoh
8f7e188822
Add "rb_" prefixes to toplevel enum definitions
...
... as per ko1's request.
2022-07-22 23:10:24 +09:00
Yusuke Endoh
e763b1118b
Move enum definitions out of struct definition
2022-07-22 23:10:24 +09:00
Nobuyoshi Nakada
c7fd015d83
Update .indent.pro [ci skip]
2022-07-22 21:59:58 +09:00
Nobuyoshi Nakada
92c7417d73
Adjust indents [ci skip]
2022-07-22 21:59:27 +09:00
Takuya Noguchi
c6734edc34
[rubygems/rubygems] Remove bundle show from obsolete commands
...
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
6c07c9427b
2022-07-22 21:01:45 +09:00
Nobuyoshi Nakada
a4e890b93e
[rubygems/rubygems] Use SystemExit#status
as exit_code
...
No reasons to manage separately.
8ede5c886e
2022-07-22 21:01:31 +09:00
Hiroshi SHIBATA
55c771c302
[rubygems/rubygems] rubygems.rb is required by gem_runner.rb
...
503f763865
2022-07-22 16:24:29 +09:00
Hiroshi SHIBATA
fe77071697
[rubygems/rubygems] Removed needless value assignment
...
5825c4c2e8
2022-07-22 16:24:29 +09:00
Nobuyoshi Nakada
f081e1fead
Revive .indent.pro with adding -nut
(--no-tabs
) [ci skip]
2022-07-22 12:23:17 +09:00
Takuya Noguchi
5904895cf5
Add .git-blame-ignore-revs
...
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2022-07-22 12:09:04 +09:00
Takuya Noguchi
d7ffd3fea4
RubyGems: Enable Style/StringLiterals cop
...
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2022-07-22 12:07:23 +09:00
Akinori MUSHA
388c4e1076
Make Gem::SystemExitException properly exit with a given code
...
The cause was in how Gem::SystemExitException initializes itself. It
didn't pass an exit code to the super method. See the document of
SystemExit.new() for details.
2022-07-22 12:06:05 +09:00
Kenyon Ralph
6b74996810
bin/gem: remove initial empty line
2022-07-22 12:06:05 +09:00
SHIBATA Hiroshi
b4876c8e5f
Removed needless condition for old versions of Ruby.
2022-07-22 12:06:05 +09:00
bronzdoc
1ed7ab29b3
Enable Style/MultilineIfThen in Rubocop
2022-07-22 12:06:05 +09:00
David Rodríguez
3b67c161cd
Remove trailing blank lines
2022-07-22 12:06:05 +09:00
John Labovitz
030c41bf55
Improve user-facing messages by consistent casing of Ruby/RubyGems
...
(when it referred to the general concept and not a path), single-spacing
between sentences, and a few other small issues.
2022-07-22 12:06:05 +09:00
Nobuyoshi Nakada
c6aa65430f
Get rid of magic numbers
2022-07-22 10:41:44 +09:00
Nobuyoshi Nakada
cf7d07570f
Dump non-ASCII char as unsigned
...
Non-ASCII code may be negative on platforms plain char is signed.
2022-07-22 09:56:48 +09:00
Jeremy Evans
7223c0da15
Do not chomp trailing line separator IO#each with nil separator and chomp
...
nil separator means no sepator, so chomp should not remove a line
separator.
Partially Fixes [Bug #18770 ]
2022-07-21 12:55:24 -07:00
Peter Zhu
3a5ea7c688
Remove unused variable in array.c
...
array.c:460:14: warning: unused variable 'len' [-Wunused-variable]
long len = ARY_HEAP_LEN(ary);
2022-07-21 15:49:26 -04:00