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

72196 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 45177129a7
Support old Mac OS X SDK and gcc
Follow up of https://github.com/ruby/ruby/pull/5927

`pthread_threadid_np()` is not even be declared in outdated SDKs.

Also, the `__API_AVAILABLE` macro does not work on gcc, which does not
support the [availability] attribute of clang, so an additional weak
symbol declaration is required to check for weakly linked symbols.

[availability]: https://clang.llvm.org/docs/AttributeReference.html#availability
2022-05-27 15:08:30 +09:00
Nobuyoshi Nakada 7d9da4c33d
Use `$(CHDIR)` so works with symlink [ci skip] 2022-05-27 09:56:01 +09:00
Nobuyoshi Nakada be26f40682
Revert "Stop rebuilding miniruby always [ci skip]"
This reverts commit 2f5edfa47d.
2022-05-27 09:54:45 +09:00
Jemma Issroff a04d8c9513
Remove trailing comma from FL_USER3 (#5958) 2022-05-26 15:40:34 -07:00
Jemma Issroff 33fdff3c30 Remove unused RMODULE_INCLUDED_INTO_REFINEMENT flag 2022-05-26 12:09:04 -07:00
John Hawthorn adc709adb8
Don't attempt to read ivars on T_ICLASS in struct (#5664) 2022-05-26 11:54:15 -07:00
git c3929b8c73 * 2022-05-27 [ci skip] 2022-05-27 02:07:10 +09:00
Noah Gibbs (and/or Benchmark CI) ba88787087 Use bindgen to import CRuby constants for YARV instruction bytecodes 2022-05-26 13:06:47 -04:00
Samuel Williams bd472ef36f Show ASAN_OPTIONS in hacking guide. 2022-05-27 01:04:28 +12:00
S-H-GAMELINKS 46cf3bf333 Using TZMODE_SET_LOCALTIME macro 2022-05-26 19:55:05 +09:00
Nobuyoshi Nakada 2f5edfa47d
Stop rebuilding miniruby always [ci skip] 2022-05-26 15:26:33 +09:00
Samuel Williams 2556e15d75 Remove unnecessary ignore warnings. 2022-05-26 16:51:53 +12:00
Samuel Williams 946e3bbdc2 Simplify the autoload require logic. 2022-05-26 14:20:59 +12:00
git 982bf7262e * 2022-05-26 [ci skip] 2022-05-26 07:08:41 +09:00
Burdette Lamar 012eb9b70d [ruby/fileutils] [DOC] Enhanced RDoc for copy_entry (https://github.com/ruby/fileutils/pull/76)
https://github.com/ruby/fileutils/commit/27a3c376c7
2022-05-26 07:08:26 +09:00
Samuel Williams d875445e8a Fix GC race condition in autoload. 2022-05-26 00:17:30 +12:00
Nobuyoshi Nakada cd6f87eefc [ruby/timeout] Set the flag surely before return
https://github.com/ruby/timeout/commit/f3a31abdfb
2022-05-25 19:50:47 +09:00
Nobuyoshi Nakada 1528770794
Remove unexpected rakelib [ci skip] 2022-05-25 19:16:56 +09:00
Nobuyoshi Nakada 8006a15edf [ruby/timeout] Add epoch.rake [ci skip]
https://github.com/ruby/timeout/commit/5153ae9cad
2022-05-25 19:05:16 +09:00
Nobuyoshi Nakada df7a1377e6 [ruby/timeout] Update spec files not to include unused files [ci skip]
https://github.com/ruby/timeout/commit/01c44b591f
2022-05-25 18:58:46 +09:00
Samuel Williams 952ff7fbb3 Fix out of bounds read. 2022-05-25 21:50:53 +12:00
Samuel Williams 86602484a2 Ensure we retain the main fiber stack bounds. 2022-05-25 21:50:53 +12:00
Nobuyoshi Nakada 983f2688db
Hack to avoid leak checker 2022-05-25 18:48:01 +09:00
Nobuyoshi Nakada e77e233935 [ruby/timeout] Hack to avoid leak checker
https://github.com/ruby/timeout/commit/9a9b03b44c
2022-05-25 18:47:26 +09:00
Nobuyoshi Nakada cdfb027213
Run find in PATH [ci skip] 2022-05-25 18:26:24 +09:00
git ab7f8e32aa Update default gems list at fde4519af8 [ci skip] 2022-05-25 09:09:04 +00:00
Hiroshi SHIBATA fde4519af8 [ruby/timeout] Bump version to 0.3.0
https://github.com/ruby/timeout/commit/f69f954a94
2022-05-25 18:08:01 +09:00
Nobuyoshi Nakada 0114c72df0
Clean intermediate files for update-deps [ci skip] 2022-05-25 15:06:47 +09:00
Samuel Williams 9a8fc4e04c Tidy up redundant returns. 2022-05-25 15:24:24 +12:00
Samuel Williams 42bcc629fb Retain reference to blocking fibers. 2022-05-25 15:24:24 +12:00
Samuel Williams 901525b107 Add support for address sanitizer for amd64 and arm64. 2022-05-25 15:24:24 +12:00
nicholas a. evans d020334e9e [ruby/reline] Workaround libncurses.so as a linker script
This maybe isn't probably isn't the best approach, but it will allow
`Fiddle::Terminfo.curses_dl` to work.  I documented more details about
this in an issue on fiddle: https://github.com/ruby/fiddle/issues/107

It is probably better to deal with it there.  But this is workaround is
simpler.

FYI: `reline` itself seems to be working just fine for me _without_
loading ncurses.  But I wanted to be able to use `Reline::Terminfo` for
my own projects. :)

https://github.com/ruby/reline/commit/fd4bdb35e2
2022-05-25 06:34:28 +09:00
Mike Dalessio 0c36ba5319 Define unsupported GC compaction methods as rb_f_notimplement
Fixes [Bug #18779]

Define the following methods as `rb_f_notimplement` on unsupported
platforms:

- GC.compact
- GC.auto_compact
- GC.auto_compact=
- GC.latest_compact_info
- GC.verify_compaction_references

This change allows users to call `GC.respond_to?(:compact)` to
properly test for compaction support. Previously, it was necessary to
invoke `GC.compact` or `GC.verify_compaction_references` and check if
those methods raised `NotImplementedError` to determine if compaction
was supported.

This follows the precedent set for other platform-specific
methods. For example, in `process.c` for methods such as
`Process.fork`, `Process.setpgid`, and `Process.getpriority`.
2022-05-24 09:40:03 -07:00
Mike Dalessio 0de1495f35 Move compaction-related methods into gc.c
These methods are removed from gc.rb and added to gc.c:

- GC.compact
- GC.auto_compact
- GC.auto_compact=
- GC.latest_compact_info
- GC.verify_compaction_references

This is a prefactor to allow setting these methods to
`rb_f_notimplement` in a followup commit.
2022-05-24 09:40:03 -07:00
David Rodríguez 9fdef28687 [rubygems/rubygems] Show exception cause in bug report template
https://github.com/rubygems/rubygems/commit/84b163e804
2022-05-25 01:17:59 +09:00
git c603f897a3 * 2022-05-25 [ci skip] 2022-05-25 00:38:29 +09:00
Burdette Lamar ae09fffbff [ruby/fileutils] [DOC] Enhanced RDoc for ::cp_r (https://github.com/ruby/fileutils/pull/75)
https://github.com/ruby/fileutils/commit/a4da433443
2022-05-25 00:38:14 +09:00
David Rodríguez 633608ebd4 [rubygems/rubygems] Fix crash when printing resolution conflicts on metadata requirements
https://github.com/rubygems/rubygems/commit/b69e1e9374
2022-05-24 21:24:57 +09:00
Koichi Sasada 08cee2bf80 altstack is native thread's attr
Move th->altstack to th->nt->altstack.
2022-05-24 17:50:49 +09:00
Nobuyoshi Nakada 78785fb990 [ruby/date] Constify gperf-generated table
https://github.com/ruby/date/commit/6d7ab08ffc
2022-05-24 17:23:42 +09:00
Koichi Sasada 62e08d4b84 remove `DEBUG_OUT()` macro
This macro is no longer used ([GH-5933]).
2022-05-24 16:28:07 +09:00
Nobuyoshi Nakada d2033d0f06
[WASM] System initialization has no stack rewinding code to Asyncify 2022-05-24 12:17:19 +09:00
Koichi Sasada 2d1e7dfc36 remove `-DTHREAD_DEBUG` rule
(but it was already commented out)
2022-05-24 10:06:51 +09:00
Koichi Sasada 4111028a5c use `RUBY_DEBUG_LOG` instead of `thread_debug`
`thread_debug()` was introduced to print debug messages
on `THREAD_DEBUG > 0` but `RUBY_DEBUG_LOG()` is more controllable.
2022-05-24 10:06:51 +09:00
Koichi Sasada f3235ac095 add `rb_th_serial()`
`rb_th_serial(th)` returns th's serial for debug print purpose.
2022-05-24 10:06:51 +09:00
Koichi Sasada d9984f39d3 remove `NON_SCALAR_THREAD_ID` support
`NON_SCALAR_THREAD_ID` shows `pthread_t` is non-scalar (non-pointer)
and only s390x is known platform. However, the supporting code is
very complex and it is only used for deubg print information.

So this patch removes the support of `NON_SCALAR_THREAD_ID`
and make the code simple.
2022-05-24 10:06:51 +09:00
Koichi Sasada 741ac50330 `native_tls_get()`' should not check results
caller should check the result of `native_tls_get()`.
2022-05-24 10:06:51 +09:00
Burdette Lamar 9c9c217045 [ruby/fileutils] [DOC] Enhanced RDoc for ::cp (https://github.com/ruby/fileutils/pull/74)
https://github.com/ruby/fileutils/commit/956b345ceb
2022-05-24 07:57:52 +09:00
Jemma Issroff 80ad0e751f Remove unnecessary module flag, add module assertions to other module flags 2022-05-23 11:04:34 -07:00
Koichi Sasada 37ccf91bfb cleanup by `RUBY_DEBUG_LOG2` and `VM_ASSERT` 2022-05-24 02:22:41 +09:00