summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-09-21sockets add `TCP_CONNECTION_INFO` and `TCP_KEEPALIVE` constants.David CARLIER
Notes: Merged: https://github.com/ruby/ruby/pull/5871
2022-09-21socket add FreeBSD's SO_SETFIB constant.David CARLIER
Notes: Merged: https://github.com/ruby/ruby/pull/5917
2022-09-21[DOC] Tweak the doc for `Process.kill` signatureKoichi ITO
Replacing `...` with `*pids` seems to clarify the expected variadic arguments. Note that the expected arguments are two or more with a signal and pids. That is, the method must have at least one pid, which cannot be omitted: ```console % ruby -e 'Process.kill(0)' -e:1:in `kill': wrong number of arguments (given 1, expected 2+) (ArgumentError) from -e:1:in `<main>' ``` Notes: Merged: https://github.com/ruby/ruby/pull/5928
2022-09-21[DOC] Improve NEWS.mdMau Magnaguagno
Fix missing dot and replace error with ArgumentError. Notes: Merged: https://github.com/ruby/ruby/pull/6302
2022-09-21backup IRBRC environmental variable. It's used by test methods when it's ↵Hiroshi SHIBATA
defined. Notes: Merged: https://github.com/ruby/ruby/pull/6411
2022-09-21Fix the missing locale errorHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/6411
2022-09-21Fix a broken Slack notificationTakashi Kokubun
The matrix doesn't have `os`.
2022-09-21proper function prototypes for openssl卜部昌平
Just to reroute compiler warnings. Notes: Merged: https://github.com/ruby/ruby/pull/6358
2022-09-21getenv: is in stdlib.h卜部昌平
getenv is a very basic function that has been in stdlib.h since ISO/IEC 9899:1990. There is absolutely zero need for us to redeclare. pty.c already includes stdlib.h out of the box so we need nothing. Notes: Merged: https://github.com/ruby/ruby/pull/6358
2022-09-21reserved_word: just use gperf 3.1 declaration卜部昌平
The reason why this was commented out was because of gperf 3.0 vs 3.1 differences (see [Feature #13883]). Five years passed, I am pretty confident that we can drop support of old versions here. Ditto for uniname2ctype_p(), onig_jis_property(), and zonetab(). Notes: Merged: https://github.com/ruby/ruby/pull/6358
2022-09-21cc_new: vm_ci_new's 4th argument is a pointer卜部昌平
Don't pass boolean. Notes: Merged: https://github.com/ruby/ruby/pull/6358
2022-09-21type pun rb_f_notimplement卜部昌平
Other functions are already type-punned elsewhere. rb_f_notimplement is the only exceptional function that appear literally. We have to take care of it by hand. Notes: Merged: https://github.com/ruby/ruby/pull/6358
2022-09-21vm_method_cfunc_is: get rid of ANYARGS卜部昌平
ANYARGS-ed function prototypes are basically prohibited in C23. Use __attribute__((__transparent_union__)) instead. Notes: Merged: https://github.com/ruby/ruby/pull/6358
2022-09-21cref_replace_with_duplicated_cref_each_frame: returns a pointer卜部昌平
Why use FALSE here? Notes: Merged: https://github.com/ruby/ruby/pull/6358
2022-09-21rb_define_method: dedicated overload for rb_f_notimplement卜部昌平
rb_f_notimplement was type-compatible with VALUE(*)(ANYARGS), but not any longer in C23. Provide a dedicated path for it. Notes: Merged: https://github.com/ruby/ruby/pull/6358
2022-09-21avoid ANYARGS卜部昌平
Use macro instead of a static functon. This isn't very amusing but doing this wihtout a macro (is possibe but) seems just too much. Notes: Merged: https://github.com/ruby/ruby/pull/6358
2022-09-21vm_insnhelper.c: add casts卜部昌平
Why they have not been at the first place? Siblings have proper casts. Notes: Merged: https://github.com/ruby/ruby/pull/6358
2022-09-21obj_refer_only_sharables_p_i: need derefernce卜部昌平
Clang says "warning: variable 'pcnt' set but not used" here. In fact it doesn't. The intention is clear that we want to increment cnt, not pcnt. Adding a * mark solves everything. Notes: Merged: https://github.com/ruby/ruby/pull/6358
2022-09-21syserr_initialize: delete redundant strerror() declaration卜部昌平
This line issues a warning on clang. strerror is of course a part of ISO C since its dawn. We practically have never needed it. Notes: Merged: https://github.com/ruby/ruby/pull/6358
2022-09-21LLVM 15 released卜部昌平
See https://discourse.llvm.org/t/llvm-15-0-0-release/65099 Notes: Merged: https://github.com/ruby/ruby/pull/6358
2022-09-20Guard `--yjit-stats` behind `#[cfg(feature = "stats")]` (#6409)Maxime Chevalier-Boisvert
* Guard --yjit-stats behind #[cfg(feature = "stats")] * Only ask for --yjit-stats with dev builds on cirrus CI * Revert "Only ask for --yjit-stats with dev builds on cirrus CI" This reverts commit cfb5ddfa4b9394ca240447eee02637788435b02a. * Make it so the --yjit-stats option works for non-release builds * Revert accidental changes Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
2022-09-20YJIT: Support MAKE=bmake for release buildAlan Wu
This add support for bmake, which should allow building with `configure --enable-yjit` for the BSDs. Tested on FreeBSD 13 and on macOS with `configure MAKE=bmake` on a case-sensitive file system. It works by including a fragment into the Makefile through the configure script, similar to common.mk. It uses the always rebuild approach to keep build system changes minimal. Notes: Merged: https://github.com/ruby/ruby/pull/6408
2022-09-20Try to ignore a noisy ASAN warning for continuationYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/6405
2022-09-20[DOC] socket: fix wrong sample addresses (#6372)Sutou Kouhei
IPv6 link local address is fe80::/10 not ff80::/10: https://www.rfc-editor.org/rfc/rfc4291.html Link-Local unicast 1111111010 FE80::/10 2.5.6 IPv6 (deprecated) site local address is fec0::/10 not ffc0::/10: https://www.rfc-editor.org/rfc/rfc3513.html Site-local unicast 1111111011 FEC0::/10 2.5.6 Notes: Merged-By: kou <kou@clear-code.com>
2022-09-20Quiet if the target is already linked the same sourceNobuyoshi Nakada
2022-09-20Ignore EPERM which means already being process-leaderNobuyoshi Nakada
2022-09-20Fix the trailing comma comment for builtin [ci skip]Takashi Kokubun
so that it's clear why not args.last but args[1]
2022-09-20Support trailing commas in builtinTakashi Kokubun
`foo(Primitive.cexpr!('Qnil'),)` causes SEGV without this change.
2022-09-20YJIT: Show --yjit-stats of railsbench on CI (#6403)Takashi Kokubun
* YJIT: Show --yjit-stats of railsbench on CI * YJIT: Use --enable-yjit=dev to see ratio_in_yjit * YJIT: Show master GitHub URL for quick comparison * YJIT: Avoid making CI red by a yjit-bench failure Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-09-20[ruby/psych] Convert some of Parser#parse to RubyAaron Patterson
This commit just converts some of the parse method to Ruby https://github.com/ruby/psych/commit/bca7d2c549
2022-09-19[ruby/bigdecimal] Remove symbol defs in missing.h for old RubiesPeter Zhu
Commit 2885514 added these to support Ruby 2.1. The rb_sym2str function is defined since Ruby 2.2. https://github.com/ruby/bigdecimal/commit/be366c9cf2
2022-09-19[ruby/bigdecimal] Remove array defs in missing.h for old RubiesPeter Zhu
Commit 02b6053 added these to support Ruby 2.0.0. The rb_array_const_ptr function is defined since Ruby 2.3. https://github.com/ruby/bigdecimal/commit/678699ca1b
2022-09-19YJIT: Check if the processor supports --yjit-stats (#6401)Takashi Kokubun
* YJIT: Add asm comment for incr_counter * YJIT: Check if the processor supports --yjit-stats Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-09-19Reduce fork calls in daemonNobuyoshi Nakada
The forked child process is a grandchild process from the viewpoint of the process which invoked the caller process. That means the child is detached at that point, and it does not need to fork twice. Notes: Merged: https://github.com/ruby/ruby/pull/6402
2022-09-19Add another test for `Process.daemon`Nobuyoshi Nakada
Check for that the daemon process is detached, that means it is not a child and not waitable. Notes: Merged: https://github.com/ruby/ruby/pull/6402
2022-09-19Stop recommending duplicated options [ci skip] (#6400)Takashi Kokubun
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-09-19Only exit if ruby2_keywords and splat together (#6395)Jimmy Miller
Before this change railsbench spent less time in yjit than before splat. This brings it back to parity. Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-09-19Fix the option name in the error message [ci skip]Nobuyoshi Nakada
2022-09-19Extract UNICODE_DOWNLOADERNobuyoshi Nakada
2022-09-19Downloader: Define long option aliasesNobuyoshi Nakada
2022-09-19Downloader: Define per-class command line optionsNobuyoshi Nakada
Move `Downloader::Unicode` specific options, and parse options after the downloader specificier.
2022-09-18Include lib/mjit/instruction.rb in a snapshotTakashi Kokubun
baseruby shouldn't be necessary once a snapshot is built.
2022-09-18Move mjit/instruction.rb rule to common.mkTakashi Kokubun
as suggested by nobu. We don't really need to generate this for Windows, but using common.mk whenever possible would probably make maintenance easier. Notes: Merged: https://github.com/ruby/ruby/pull/6398
2022-09-18Update bindgen crate (#6397)Takashi Kokubun
to get rid of deprecated indirect dependency, ansi_term Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-09-18Introduce --basedir to insns2vm.rbTakashi Kokubun
and leverage that to preserve the directory structure under tool/ruby_vm/views
2022-09-18Revert "Preserve the directory structure under tool/ruby_vm/views"Takashi Kokubun
This reverts commit 62ec621f8c7457374d1f08aec97138ac1b7bdf2a. will revisit this once fixing non-MJIT targets
2022-09-18Preserve the directory structure under tool/ruby_vm/viewsTakashi Kokubun
for nested target directories
2022-09-18Demote mjit_instruction.rb from builtin to stdlibTakashi Kokubun
2022-09-18Replace revision.tmp with the HAVE_BASERUBY trickTakashi Kokubun
but without relying on replacement. This seems to work on OpenBSD as well.
2022-09-17Always generate non-empty revision.hTakashi Kokubun
Non-GNU make seems to generate empty revision.h, but it doesn't make sense since https://github.com/ruby/ruby/pull/6382. Also the $(HAVE_BASERUBY:yes=tmp) hack doesn't seem to be working on OpenBSD. I'll remove it to focus on fixing RubyCI first, and then deal with baseruby-missing environments. At least a snapshot should have revision.h and it might work fine though.