Commit graph

77079 commits

Author SHA1 Message Date
Maxime Chevalier-Boisvert
40bf89872f
Update yjit.md
Add Alan Wu's keynote & Maxime's talk to the list of YJIT-related talks :)
2023-01-09 14:12:10 -05:00
dependabot[bot]
93b2de8278 [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.53 to 0.9.54.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.53...v0.9.54)

---
updated-dependencies:
- dependency-name: rb-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-09 18:43:03 +00:00
Takashi Kokubun
a7fbdc35a2
YJIT: Remove old comments for regenerated branches (#7083) 2023-01-09 11:29:41 -05:00
Peter Zhu
9726736006 Set STR_SHARED_ROOT flag on root of string 2023-01-09 08:49:29 -05:00
Peter Zhu
2ad081f799 Assert that resizing arrays will re-embed them 2023-01-09 08:49:29 -05:00
Peter Zhu
682b45d489 Assert that resizing objects will re-embed them 2023-01-09 08:49:29 -05:00
Peter Zhu
3be2acfafd Fix re-embedding of strings during compaction
The reference updating code for strings is not re-embedding strings
because the code is incorrectly wrapped inside of a
`if (STR_SHARED_P(obj))` clause. Shared strings can't be re-embedded
so this ends up being a no-op. This means that strings can be moved to a
large size pool during compaction, but won't be re-embedded, which would
waste the space.
2023-01-09 08:49:29 -05:00
Nobuyoshi Nakada
29dc9378d9 mkmf.rb: Refine message from pkg_config 2023-01-09 21:44:15 +09:00
Nobuyoshi Nakada
0d7bbfc941 mkmf.rb: Prefer caller_locations over parsing caller 2023-01-09 21:44:15 +09:00
Nobuyoshi Nakada
0a2bf5f1e2 [ruby/zlib] Check for functions with arguments and the header
With arguments, mkmf skips compilation check for the function as RHS.

9ed9d6d36e
2023-01-09 10:46:02 +00:00
Nobuyoshi Nakada
9d078fe477 [ruby/zlib] Fix the test broken in older versions
fc89ff9ef0
2023-01-09 09:58:43 +00:00
Lars Kanis
f6952a94eb [ruby/psych] Fix wrong package name of MSYS2/MINGW dependency
There is no package called "libyaml-devel". "libyaml" is enough.
2023-01-09 09:39:08 +00:00
Burdette Lamar
41a947e72a [ruby/uri] [DOC] Enhanced RDoc for URI
(https://github.com/ruby/uri/pull/55)

89ab4f1407
2023-01-08 23:14:50 +00:00
Burdette Lamar
20b691d664 [ruby/uri] [DOC] Enhanced RDoc for URI.decode_www_form
(https://github.com/ruby/uri/pull/53)

ce379e6125
2023-01-08 17:11:12 +00:00
Nobuyoshi Nakada
8f6a9ad35d
Remove no longer used environment variable [ci skip] 2023-01-09 00:02:29 +09:00
Nobuyoshi Nakada
1cd4db772c
Adjust spec of bundler like as sync_default_gems [ci skip] 2023-01-08 22:14:39 +09:00
Nobuyoshi Nakada
60ccd1ca81
Ignore LICENSE files of libraries vendored in rubygems [ci skip] 2023-01-08 20:58:12 +09:00
Nobuyoshi Nakada
1cdf8ab07b
[Bug #19323] Raise RangeError instead of integer overflow 2023-01-08 20:54:48 +09:00
Nobuyoshi Nakada
89546dce21 [rubygems/rubygems] [DOC] Remove internal document about Kernel monkey patch
https://bugs.ruby-lang.org/issues/19285

1e22219ed4
2023-01-08 08:09:34 +00:00
Nobuyoshi Nakada
55aa1a206c [rubygems/rubygems] LoadError#path on the caught exception does not need to protect
a31f5d1a18
2023-01-08 08:09:34 +00:00
Nobuyoshi Nakada
1a1b653c9c [rubygems/rubygems] Let RDoc parse the doc of Kernel#require
Since RDoc does not parse string literals as documents, `eval` the
entire file instead of embedding in a here-document.
On the contrary, as `gem_original_require` alias is an implementation
detail but not for users, it should not be documented.

cad4cf16cf
2023-01-08 08:09:33 +00:00
Burdette Lamar
fd98169e00 [ruby/uri] [DOC] Common rdoc (https://github.com/ruby/uri/pull/52)
be8047028f
2023-01-07 19:22:36 +00:00
Benoit Daloze
28cfc0c116 Only RangeError on CRuby for shift width >= 2**67
* It seems a better exception class too than NoMemoryError.
2023-01-07 13:18:04 +01:00
Benoit Daloze
897cf122bf Fix Integer#{<<,>>} specs with large shift width
* The limit depends on the implementation and platform, it seems unavoidable.
* See https://bugs.ruby-lang.org/issues/18518#note-9
2023-01-07 13:13:03 +01:00
Yuki Nishijima
651a098ea1 [ruby/did_you_mean] Keep the deprecated API for another year in case this could break 'bundle install'
0f4b0806b7
2023-01-07 08:47:05 +00:00
Nobuyoshi Nakada
e537aa65c0 [ruby/syntax_suggest] Run with the given ruby command
Running the file with shebang has a few issues.

* shebang is an OS dependent feature. Many modern UNIX-like OSes
  support it, but not all, e.g., Windows.
* `env` command may not be in `/usr/bin`.
* "ruby" command may not be "ruby", when `--program-suffix` or other
  configuration option is used.

2edf241055
2023-01-07 17:02:49 +09:00
Nobuyoshi Nakada
69a2687a27 [ruby/bigdecimal] Fix format specifiers for size_t
99db3c9754
2023-01-07 03:15:27 +00:00
Nobuyoshi Nakada
41fbcc5193
Fix format specifiers for pointer differences 2023-01-07 11:47:50 +09:00
Takashi Kokubun
00d58afb5d
YJIT: Make iseq_get_location consistent with iseq.c (#7074)
* YJIT: Make iseq_get_location consistent with iseq.c

* YJIT: Call it "YJIT entry point"

Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>

Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
2023-01-06 11:49:59 -08:00
Takashi Kokubun
311ce91733
YJIT: Colorize outlined code differently on --yjit-dump-disasm (#7073)
* YJIT: Colorize outlined code differently

on --yjit-dump-disasm

* YJIT: Reduce the number of escape sequences
2023-01-06 11:49:45 -08:00
Jemma Issroff
66bc620963 Remove unused function rb_shape_flags_mask 2023-01-06 11:46:50 -05:00
Peter Zhu
d8ef0a98c6 [Bug #19319] Fix crash in rb_str_casemap
The following code crashes on my machine:

```
GC.stress = true

str = "testing testing testing"

puts str.capitalize
```

We need to ensure that the object `buffer_anchor` remains on the stack
so it does not get GC'd.
2023-01-06 11:36:28 -05:00
Benoit Daloze
2b88dbc6f9 Add bug number 2023-01-06 16:28:02 +01:00
Burdette Lamar
ddbf7be94d [ruby/uri] [DOC] Enhanced RDoc for common methods
(https://github.com/ruby/uri/pull/50)

7ff4fb372b
2023-01-06 14:20:38 +00:00
Nobuyoshi Nakada
cee5beab1d [Bug #19312] Return end-of-input at __END__ 2023-01-06 13:13:07 +01:00
Nobuyoshi Nakada
d9520bf2de [DOC] Mention configure options earlier, not after failure
The command line arguments to `configure` are stored in `rbconfig.rb`.
Usually these are just useless but harmless after the installation,
however could affect unexpectedly when updating default gems.
2023-01-06 20:00:53 +09:00
Nobuyoshi Nakada
42820a9807 [DOC] Specify shell format to shell commands 2023-01-06 20:00:53 +09:00
Nobuyoshi Nakada
b94656147b mkmf.rb: Refactor splitting configure_args and remove duplicate code 2023-01-06 20:00:53 +09:00
Nobuyoshi Nakada
cd7e14da4e Pass options for extensions via CONFIGURE_ARGS 2023-01-06 20:00:53 +09:00
Kazuhiro NISHIYAMA
bdd350453c
Fix typos [ci skip] 2023-01-06 17:53:00 +09:00
git
1be669d063 Update bundled gems list at 2023-01-06 2023-01-06 07:02:20 +00:00
Nobuyoshi Nakada
dcf63b58cf [ruby/psych] Strip trailing spaces [ci skip]
e07b16ad8b
2023-01-06 06:37:01 +00:00
dsisnero
f877805a0c [ruby/psych] Add msys2 dependencies for windows
9a3816d903
2023-01-06 06:33:08 +00:00
Nobuyoshi Nakada
dd0b401716
Ensure newline at EOF [ci skip]
Cf. https://github.com/ruby/ruby/pull/7069
2023-01-06 12:13:15 +09:00
Aaron Patterson
6c618cb789 Use a different name for megamorphic setivar exits
We should differentiate between set and get for megamorphic exits.  This
patch fixes the megamorphic exit name in gen_setinstancevariable so that
we can tell the difference between megamorphic get / set sites
2023-01-05 17:49:30 -08:00
yui-knk
979dd02e2f Check if the argument is Thread::Backtrace::Location object
[Bug #19262]
2023-01-06 09:22:09 +09:00
Peter Zhu
2056c0a7c6 Add embedded status to dumps of T_OBJECT
This commit adds `"embedded":true` in ObjectSpace.dump for T_OBJECTs
that are embedded.
2023-01-05 16:00:36 -05:00
Benoit Daloze
53938efd7b Update to ruby/spec@5e48206 2023-01-05 21:07:29 +01:00
Peter Zhu
29a5fcd60b Add RBIMPL_ATTR_NORETURN to unknown_directive
Fixes a compiler warning about the function unknown_directive:

pack.c:160:1: warning: function 'unknown_directive' could be declared with attribute 'noreturn' [-Wmissing-noreturn]
2023-01-05 14:55:14 -05:00
Benoit Daloze
ec14861f0d Update to ruby/spec@7e680fa 2023-01-05 20:23:57 +01:00