Haldun Bayhantopcu
b03b251aa4
Handle all non-object type objects
2023-02-15 15:43:46 -08:00
Haldun Bayhantopcu
0b4b2cd1ee
Fix removing ivars from clases and modules.
...
Co-authored-by: Adam Hess <hparker@github.com>
2023-02-15 15:43:46 -08:00
Benoit Daloze
70d84a5f3d
[ruby/timeout] Simplify test
...
db017da726
2023-02-15 19:25:05 +00:00
Rick Blommers
610375edfc
[ruby/timeout] Don't move the timer_thread when it's enclosed
...
Don't move the timer_thread to ThreadGroup::Default, when it's
created in an enclosed ThreadGroup.
Prevents the exception: "add" can't move from the enclosed thread group"
eb889d2c8b
2023-02-15 19:25:05 +00:00
Jimmy Miller
8943b0d411
YJIT: Kernel#{is_a?,instance_of?}
fast paths (GH-7297)
...
Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
2023-02-15 14:05:42 -05:00
Aaron Patterson
ae2340c9d7
Refactor / document instance variable debug counters
...
This commit is refactoring and documenting the debug counters related to
instance variables.
2023-02-15 08:47:26 -08:00
Burdette Lamar
847a0df058
[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP#get
...
(https://github.com/ruby/net-http/pull/121 )
51b9af1eed
2023-02-15 15:00:34 +00:00
HASUMI Hitoshi
3a9d52466a
[ruby/irb] Fix help-message ( https://github.com/ruby/irb/pull/506 )
...
a55ace0791
2023-02-15 14:53:33 +00:00
Jean Boussier
7413079dae
Encapsulate RCLASS_ATTACHED_OBJECT
...
Right now the attached object is stored as an instance variable
and all the call sites that either get or set it have to know how it's
stored.
It's preferable to hide this implementation detail behind accessors
so that it is easier to change how it's stored.
2023-02-15 15:24:22 +01:00
Jean Boussier
bac4d2eefa
Check !RCLASS_EXT_EMBEDDED instead of SIZE_POOL_COUNT == 1
...
It's much more self documenting and consistent
2023-02-15 10:47:22 +01:00
Koichi Sasada
1f936d654a
ractor_queue_enq/deq
doesn't need rq
param
...
`rq` is always `r`'s queue.
2023-02-15 15:42:51 +09:00
Nobuyoshi Nakada
413120e581
Do not use objcopy
on macOS
...
On macOS, it is not used to localize symbols in dynamic libraries
(libruby.dylib and libyjit.o). Instead, using `objcopy` which does
not support recent mach-O causes linker errors as bellow.
```
linking shared-library libruby.3.3.dylib
error: cannot parse the debug map for 'libruby.3.3.dylib': Invalid data was encountered while parsing the file
linking ruby
ld: malformed mach-o: LC_*_DYLIB load command string extends beyond end of load command file './libruby.3.3.dylib'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
2023-02-15 13:45:26 +09:00
TJ
fba8f7783b
[DOC] remove redundant paragraph at set.rb ( #6472 )
...
remove redundant paragraph at set.rb
2023-02-15 12:46:16 +09:00
Kouhei Yanagita
619af4fd64
[DOC] Add an example of the splat operator with a non-array object ( #7098 )
2023-02-15 12:43:55 +09:00
Thomas R. Koll
f03dd4ee77
Refactor dir.rb sample ( #6977 ) [ci skip]
...
* Refactor dir.rb sample
The original (1998) sample with a for-loop and use of case/when isn't what we'd write nowadays
* [DOC] Update sample/dir.rb [ci skip]
Do not leave a `Dir` opened.
* [DOC] Update sample/dir.rb [ci skip]
Fix ArgumentError.
---------
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2023-02-15 12:41:53 +09:00
Eric Wong
3376eca80a
file.c: rb_file_load_ok: GC+retry on EMFILE/ENFILE/ENOMEM
...
`require' should make a best effort to avoid failure on
recoverable resource exhaustion errors.
2023-02-15 03:26:47 +00:00
Takashi Kokubun
15ef2b2d7c
YJIT: Optimize != for Integers and Strings ( #7301 )
2023-02-14 16:31:33 -05:00
Takashi Kokubun
6c5582815d
YJIT: Check correct BOP on gen_fixnum_cmp ( #7303 )
2023-02-14 12:54:50 -08:00
Burdette Lamar
3c7d5ccdce
[ruby/net-http] [DOC] Enhanced RDoc for request headers
...
(https://github.com/ruby/net-http/pull/120 )
b4eb8a7932
2023-02-14 20:33:11 +00:00
Takashi Kokubun
f4b0e8dc61
YJIT: Pad more spaces to accommodate delimiters ( #7302 )
2023-02-14 11:58:34 -08:00
Takashi Kokubun
55af69b15e
YJIT: Don't side-exit on too-complex shapes ( #7298 )
2023-02-14 12:12:48 -05:00
dependabot[bot]
e5e506095c
[rubygems/rubygems] Bump rb-sys
...
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys ) from 0.9.61 to 0.9.64.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases )
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.61...v0.9.64 )
---
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-02-14 13:59:32 +00:00
Nobuyoshi Nakada
538c3b9ab7
Suppress -Wunused-but-set-variable warning
2023-02-14 19:26:41 +09:00
Nobuyoshi Nakada
ef9efcf0bf
Check if objcopy works to localize symbol
...
LLVM objcopy does not support localizing symbols option, e.g,
`--localize-symbol` and `--keep-global-symbol`, for MachO.
2023-02-14 18:47:29 +09:00
Nobuyoshi Nakada
2490b2e121
Add utility macros DECIMAL_SIZE_OF
and DECIMAL_SIZE_OF_BYTES
2023-02-14 15:18:21 +09:00
Nobuyoshi Nakada
45f0e3a673
[Bug #19259 ] Data#with
should call initialize
method
2023-02-14 12:02:07 +09:00
Takashi Kokubun
dbe5b0dcff
YJIT: Fix a typo in a counter name
...
I added `invokeblock_iseq_arg0_args_splat` counter but it wasn't used
because of a typo.
Related to https://github.com/ruby/ruby/pull/7234
2023-02-13 16:58:46 -08:00
Alan Wu
86de48e9f6
Remove ibf_dumper's WB_PROTECTED status
...
It doesn't have the right write barriers in place. For example, there is
rb_mark_set(dump->global_buffer.obj_table);
in the mark function, but there is no corresponding write barrier when
adding to the table in the
`ibf_dump_object() -> ibf_table_find_or_insert() -> st_insert()` code path.
To insert write barrier correctly, we need to store the T_STRUCT VALUE
inside `struct ibf_dump`. Instead of doing that, let's just demote it
to WB unproected for correctness. These dumper object are ephemeral so
there is not a huge benefit for having them WB protected.
Users of the bootsnap gem ran into crashes due to this issue:
https://github.com/Shopify/bootsnap/issues/436
Fixes [Bug #19419 ]
2023-02-13 11:42:58 -05:00
Jean Boussier
7ddcee5928
Marshal.load: also freeze extended objects
...
[Bug #19427 ]
The `proc` wouldn't be called either, that fixes both.
2023-02-13 17:08:21 +01:00
BurdetteLamar
bc6e587e86
[ruby/net-http] Enhanced RDoc for Compression
...
cff88acd70
2023-02-13 13:04:33 +00:00
Nobuyoshi Nakada
9821f6d0e5
Override release date in Makefile if possible
2023-02-13 15:12:54 +09:00
Nobuyoshi Nakada
849087ccb1
Apply zone offset to the last modified time
2023-02-13 15:12:14 +09:00
tomoya ishida
f313514563
[ruby/irb] Fix colorize backtick symbol
...
(https://github.com/ruby/irb/pull/508 )
dd7f25cd45
Co-authored-by: Stan Lo <stan001212@gmail.com>
2023-02-12 20:27:32 +00:00
Takashi Kokubun
6517d1a188
[DOC] Move old ChangeLog files to doc/ChangeLog ( #7293 )
2023-02-10 16:57:56 -08:00
Takashi Kokubun
d8facbabff
[DOC] Make the header levels consistent again
2023-02-10 16:37:43 -08:00
Jeremy Evans
27fe4a1bc5
Fix minor issues in doc/maintainers.md ( #7292 )
...
Use *unmaintained* instead of Ruby core team in 2 places, for
consistency with the rest of the document.
Use h3 instead of h4 tags if nested directly under h2.
2023-02-10 16:37:07 -08:00
Takashi Kokubun
c06565390e
[DOC] debug.rb is a bundled gem from 3.1
2023-02-10 16:34:55 -08:00
Takashi Kokubun
0e7eac7b48
[DOC] Add a link to [ruby-core:25764]
2023-02-10 16:30:47 -08:00
Takashi Kokubun
1189a5634c
[DOC] Update a link to maintainers.rdoc
2023-02-10 16:22:43 -08:00
Takashi Kokubun
f6d4f2bf67
Convert doc/maintainers.rdoc to .md ( #7291 )
...
* [DOC] Convert maintainers.rdoc to .md
with RDoc::Markup::ToMarkdown
* [DOC] Format maintainers.md
2023-02-10 16:21:34 -08:00
Maxime Chevalier-Boisvert
a7e8eabeed
YJIT: add counters for polymorphic send and send with known class ( #7288 )
2023-02-10 16:05:16 -05:00
Matt Valentine-House
7ece23bf74
Remove duplicate definitions
...
These are defined in ruby/internal/config.h which is included in
this file already.
2023-02-10 11:53:20 -05:00
Matt Valentine-House
dc715af53b
Tell VSCode to debug test.rb by default [ci-skip]
2023-02-10 11:53:04 -05:00
Jean Boussier
46298955e4
Implement Write Barrier for RMatch objects
...
They only have two references.
2023-02-10 16:12:22 +01:00
OKURA Masafumi
11e0f62148
[DOC] Fix typo in document of regexp [ci skip]
2023-02-10 18:32:21 +09:00
Koichi Sasada
be94808282
use correct svar even if env is escaped
...
This patch is follo-up of 0a82bfe
.
Without this patch, if env is escaped (Proc'ed), strange svar
can be touched.
This patch tracks escaped env and use it.
2023-02-10 17:55:25 +09:00
Nobuyoshi Nakada
38ecf08ba1
[DOC] Fix the help messages for clean
2023-02-10 14:46:52 +09:00
Eric Wong
b9f90cafa1
st.c: spell `perturb' properly
...
Otherwise, a reader may wonder who `Peter B.' is and why
a variable is named after them...
2023-02-10 03:50:31 +00:00
Satadru Pramanik, DO, MPH, MEng
94aed6ece5
[ruby/fileutils] Add mkdir_p to FileUtils.install
...
(https://github.com/ruby/fileutils/pull/104 )
* Add mkdir_p to FileUtils.install
* Adjust raise message.
* adjust raise language
* handle trailing slash in dest
* simplify
* Add tests
2023-02-10 03:37:39 +00:00
Mike Perham
194520f80e
[ruby/logger] Add Logger#with_level{...} for block-scoped log level.
...
(https://github.com/ruby/logger/pull/85 )
* Update lib/logger/severity.rb
7aabb0b4aa
2023-02-10 01:08:49 +00:00