aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* atime may not updated unless strictatime is set on macOS CatalinaNobuyoshi Nakada2019-10-121-0/+3
| | | | | | | | | | | | | Cited from mount(8): ``` strictatime Always update the file access time when reading from a file. Without this option the filesystem may default to a less strict update mode, where some access time updates are skipped for performance reasons. This option could be ignored if it is not supported by the filesystem. ```
* Import CSV 3.1.2 (#2547)Sutou Kouhei2019-10-1214-445/+580
|
* Use `warn` with `uplevel:` instead of `caller`Kazuhiro NISHIYAMA2019-10-121-1/+1
|
* * 2019-10-12 [ci skip]git2019-10-121-1/+1
|
* Import REXML 3.2.3 (#2548)Sutou Kouhei2019-10-124-1/+13
|
* io.c (NUM2IOCTLREQ): Accept a value more than INT_MAXYusuke Endoh2019-10-111-1/+1
| | | | | | | | ioctl accepts int as request arguments on some platforms, but some requests are more than INT_MAX, e.g., RNDGETENTCNT(0x80045200). Passing (0x80045200 | (-1 << 32)) may work around the issue, but it may not work on a platform where ioctl accepts unsigned long. So this change uses NUM2LONG and then casts it to int.
* test/ruby/test_rubyoptions.rb (test_encoding): skipped on AndroidYusuke Endoh2019-10-111-1/+1
| | | | On Android, nl_langinfo() always returns UTF-8 even when LANG is C.
* test/test_syslog.rb (test_log): skipped on AndroidYusuke Endoh2019-10-111-0/+2
| | | | | On Android 28, LOG_PERROR is defined, but not implemented yet. This change skips Syslog#log explicitly.
* Use `bind_call` instead of `bind` and `call`Kazuhiro NISHIYAMA2019-10-112-2/+2
|
* win32.c: Remove unused calls to StartSockets (#2312)Gabriel Nagy2019-10-111-75/+2
| | | | | | | | NtSocketsInitialized behavior changed in e33b1690, requiring a call to rb_w32_sysinit for starting Windows Sockets. This commit removes NtSocketsInitialized entirely to avoid confusion. Signed-off-by: Gabriel Nagy <gabriel.nagy@puppet.com>
* Module#define_method: Add UnboundMethod to expected classesksss2019-10-111-1/+1
|
* Reduce the minimum string buffer size from 127 to 63 bytesLourens Naudé2019-10-111-1/+1
|
* Right size the numtable in insn_make_insn_table to VM_INSTRUCTION_SIZELourens Naudé2019-10-111-1/+1
|
* set real path to __FILE__ and __dir__ in Binding#irbtakkanm2019-10-111-1/+3
| | | | When reading Binding#irb, the file of the calling source is reflected in __FILE__ and __dir__.
* Document the difference between expressions and statements [ci skip]Jeremy Evans2019-10-103-5/+67
| | | | | | | | | | | | In the grammar, all expressions are statements, but not all statements are expressions. Some parts of the grammar accept expressions and not other types of statements, which causes similar looking code to parse differently due to operator precedence. Mostly from Dan0042 (Daniel DeLorme). Fixes [Bug #16092]
* * 2019-10-11 [ci skip]git2019-10-111-1/+1
|
* Support delegates for BasicObjectJeremy Evans2019-10-102-4/+22
| | | | | | | | | For BasicObject, bind the Kernel respond_to? instance method to the object and call it instead of calling the method directly. Also, use bind_call(recv, ...) for better performance. Fixes [Bug #16127]
* mjit_worker.c: Add `-lm` to the C compiler in MJIT on AndroidYusuke Endoh2019-10-101-0/+3
| | | | | | To avoid: cannot locate symbol "modf" referenced by .../_ruby_mjit_XXX.so"
* ext/syslog/extconf.rb: add -llog for AndroidYusuke Endoh2019-10-101-0/+2
| | | | | | Otherwise, requiring syslog results in: cannot locate symbol "__android_log_print" referenced by "syslog.so"
* test/ruby/test_file_exhaustive.rb: check the owner of the root directoryYusuke Endoh2019-10-101-1/+1
| | | | | The root directory may be owned by the current user, for example, in chroot environment.
* Skip very time consuming test [Bug #16196]Nobuyoshi Nakada2019-10-101-0/+1
|
* Prefer rb_gc_register_mark_objectNobuyoshi Nakada2019-10-101-1/+1
| | | | | | | * ext/openssl/ossl_asn1.c (Init_ossl_asn1): prefer `rb_gc_register_mark_object`, which is better for constant objects, over `rb_gc_register_address` for global/static variables which can be re-assigned at runtime. [Bug #16196]
* Slimed down test runtime by stressing openssl.so only [Bug #16196]Nobuyoshi Nakada2019-10-101-2/+1
|
* forgot to delete unused #incude line卜部昌平2019-10-101-1/+0
|
* guard rb_fatal against non-GVL call卜部昌平2019-10-101-0/+8
| | | | | | Suggested by ko1. rb_fatal requires GVL so just in case one lacks, print that information and let the process die. As commented, we cannot print the given messages on such situations.
* make rb_raise a GVL-only function again卜部昌平2019-10-104-38/+52
| | | | | | Requested by ko1 that ability of calling rb_raise from anywhere outside of GVL is "too much". Give up that part, move the GVL aquisition routine into gc.c, and make our new gc_raise().
* add "[FATAL]" marker on abort卜部昌平2019-10-101-0/+1
| | | | Indicate that the situation is fatal.
* Remove unreachable step level `[ci skip]`Kazuhiro NISHIYAMA2019-10-103-5/+4
|
* Guard static variable firstNobuyoshi Nakada2019-10-102-1/+6
| | | | | | | * ext/openssl/ossl_asn1.c (Init_ossl_asn1): register the static variable to grab an internal object, before creating the object. otherwise the just-created object could get collected during the global variable list allocation. [Bug #16196]
* [rubygems/rubygems] Do not compare with unreliable Gem::Specification::TODAYNobuyoshi Nakada2019-10-101-15/+18
| | | | | | https://gist.github.com/ko1/a88834d744a0682711dab53fd9015a04#file-brlog-trunk-nopara-20191005-235153-L393-L472 https://github.com/rubygems/rubygems/commit/707408d8e7
* [rubygems/rubygems] Restrict possible date rangeNobuyoshi Nakada2019-10-101-2/+3
| | | | https://github.com/rubygems/rubygems/commit/1bd77f53df
* [rubygems/rubygems] Optimize Gem::Package::TarReader#eachJean Boussier2019-10-101-9/+15
| | | | https://github.com/rubygems/rubygems/commit/1de8f39ac4
* Now error.o needs thread.hNobuyoshi Nakada2019-10-101-0/+1
|
* Fixed numbered parameter checkNobuyoshi Nakada2019-10-102-23/+30
| | | | | | * parse.y (struct local_vars): moved numbered parameter NODEs for nesting check to separate per local variable scopes, as numbered parameters should belong to local variable scopes. [Bug #16248]
* negative_size_allocation_error never returnsNobuyoshi Nakada2019-10-101-1/+1
|
* allow rb_raise from outside of GVL卜部昌平2019-10-103-23/+46
| | | | | | | | | | | | | | | Now that allocation routines like ALLOC_N() can raise exceptions on integer overflows. This is a problem when the calling thread has no GVL. Memory allocations has been allowed without it, but can still fail. Let's just relax rb_raise's restriction so that we can call it with or without GVL. With GVL the behaviour is unchanged. With no GVL, wait for it. Also, integer overflows can theoretically occur during GC when we expand the object space. We cannot do so much then. Call rb_memerror and let that routine abort the process.
* lhs of pattern matching expression of should have a valueNobuyoshi Nakada2019-10-101-0/+1
|
* extracted declare_underNobuyoshi Nakada2019-10-101-8/+10
|
* Simplify rb_define_module_idAlan Wu2019-10-101-5/+1
|
* * 2019-10-10 [ci skip]git2019-10-101-1/+1
|
* fix memory corruption in old GCC卜部昌平2019-10-102-2/+1
| | | | | | | | This typo introduced memory corruption when __builtin_add_overflow is not available but uint128_t is. GCC before 5 are one of such situatins. See also https://rubyci.org/logs/rubyci.s3.amazonaws.com/opensuseleap/ruby-master/log/20191009T120004Z.log.html.gz
* Prefer st_is_member over st_lookup with 0Ben Woosley2019-10-096-8/+8
| | | | The st_is_member DEFINE has simpler semantics, for more readable code.
* Share ruby_sighandler_t definitionNobuyoshi Nakada2019-10-093-7/+3
|
* signal.c: save the original sighandlers for fatal signalsYusuke Endoh2019-10-093-13/+25
| | | | | | | | | | | On Android, a signal handler that is not SIG_DFL is set by default for SIGSEGV. Ruby's install_sighandler inserts Ruby's handler only when the signal has no handler, so it does not insert Ruby's SEGV report handler, which caused some test failures. This changeset forces to install Ruby's handler for some fatal signals (sigbus, sigsegv, and sigill). They keep the original handlers, and call them when the interpreter receives the signals.
* error.c (rb_bug_for_fatal_signal): renamed from rb_bug_contextYusuke Endoh2019-10-093-5/+5
| | | | | | | | | | Just refactoring. The name "rb_bug_context" is completely unclear for me. (Can you see that "context" means "machine register context"?) The context is available only when a fatal signal (sigbus, sigsegv, or sigill) is received; in fact, the function is used only for fatal signals. So, I think the name should be changed.
* signal.c (ruby_abort): move the definition for refactoringYusuke Endoh2019-10-091-18/+17
| | | | | | The three functions for fatal signals, sigbus, sigsegv, and sigill, are a family. The definition of ruby_abort had interrupted them for no reason. This change just moves the definition after the family.
* Check '[ci skip]' at job levelKazuhiro NISHIYAMA2019-10-093-0/+3
|
* vm_eval.c (rb_adjust_argv_kw_splat): avoid memcpy with zero lengthYusuke Endoh2019-10-091-1/+1
| | | | | | | | | A method call is often with `argc = 1` and `argv = &v` where v is a VALUE, and some functions shift the arguments by `argc-1` and `argv+1` (for example, rb_sym_proc_call). I'm unsure whether it is safe or not to pass a pointer `argv+1` to memcpy with zero length, but Coverity Scan complains it. So this attempts to suppress the warning by explicit check of the length.
* Remove uselsess shebangPavel Valena2019-10-091-1/+0
| | | as the file is not executable anyway.
* Update required_ruby_version to 2.4.0aycabta2019-10-091-1/+1
|