aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [Feature #18045] Implement size classes for GCPeter Zhu2021-08-234-337/+758
| | | | | | | | | This commits implements size classes in the GC for the Variable Width Allocation feature. Unless `USE_RVARGC` compile flag is set, only a single size class is created, maintaining current behaviour. See the redmine ticket for more details. Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
* [Feature #18045] Remove T_PAYLOADPeter Zhu2021-08-236-355/+2
| | | | | | | This commit removes T_PAYLOAD since the new VWA implementation no longer requires T_PAYLOAD types. Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
* [DOC] Match each `Time.now` for comparison [ci skip]Nobuyoshi Nakada2021-08-231-2/+2
|
* * 2021-08-23 [ci skip]git2021-08-231-1/+1
|
* improves message. thanks to eregonKentaro Goto2021-08-231-1/+1
|
* Display httpd URLs supporting HTTPSKentaro Goto2021-08-231-3/+10
|
* Display httpd URLsKentaro Goto2021-08-231-0/+8
|
* Fix links [ci skip]Kazuhiro NISHIYAMA2021-08-221-0/+2
|
* [ruby/date] Add zontab.list dependencyNobuyoshi Nakada2021-08-221-0/+7
| | | | https://github.com/ruby/date/commit/7e1ffbf568
* Suppress unused-label warningsNobuyoshi Nakada2021-08-221-5/+4
|
* Fix failures on non-UTF-8 environment [Bug #18077]Nobuyoshi Nakada2021-08-222-2/+6
| | | | | | | Call `IOSpecs.io_fixture` with the default encoding explicitly. `IOSpecs.closed_io` calls the method without optional `mode` which is set to UTF-8 by default, while the default external encoding depends on the locale environment variables.
* Add rb_encoding_check functionS-H-GAMELINKS2021-08-221-10/+12
|
* Fix Marshal.dump(closed_io) to raise TypeError and allow encoding on closed IOLars Kanis2021-08-224-8/+22
| | | | | | | Mashalling a closed IO object raised "closed stream (IOError)" before instead of TypeError. This changes IO#(in|ex)ternal_encoding to still return the encoding even if the underlying FD is closed. Fixes bug #18077
* Bundle RBS 1.5.1 (#4760)Soutaro Matsumoto2021-08-221-1/+1
|
* * 2021-08-22 [ci skip]git2021-08-221-1/+1
|
* Allow tracing of optimized methodsJeremy Evans2021-08-215-4/+58
| | | | | | | | | | | | | This updates the trace instructions to directly dispatch to opt_send_without_block. So this should cause no slowdown in non-trace mode. To enable the tracing of the optimized methods, RUBY_EVENT_C_CALL and RUBY_EVENT_C_RETURN are added as events to the specialized instructions. Fixes [Bug #14870] Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
* [DOC] prefer RUBY_DEFAULT_FREE to a magic number [ci skip]Nobuyoshi Nakada2021-08-212-3/+3
|
* [DOC] mention rb_define_alloc_func [ci skip]Nobuyoshi Nakada2021-08-212-24/+27
|
* * 2021-08-21 [ci skip]git2021-08-211-1/+1
|
* [DOC] update extension.ja.rdoc [ci skip]Nobuyoshi Nakada2021-08-211-8/+5
| | | | `rb_cData` has been deprecated for years.
* [ruby/error_highlight] Fixed the argument for DidYouMean.formatter=Yusuke Endoh2021-08-201-1/+1
| | | | | | | Looks like this bug was hidden by did_you_mean's rescuing any exceptions. https://github.com/ruby/error_highlight/commit/7a8f0b4796
* ast.c: Rename "save_script_lines" to "keep_script_lines"Yusuke Endoh2021-08-206-34/+34
| | | | | | | ... as per ko1's preference. He is preparing to extend this feature to ISeq for his new debugger. He prefers "keep" to "save" for this wording. This API is internal and not included in any released version, so I change it in advance.
* Turned the reminder comment to a compile-time messageNobuyoshi Nakada2021-08-201-1/+2
|
* Add RBIMPL_TODONobuyoshi Nakada2021-08-201-6/+27
| | | | | | Make `RUBY_VERSION_SINCE` and `RUBY_VERSION_BEFORE` to take major and minor numbers so usable also in preprocessor directives. Old macros are renamed with "STRING".
* Simplify repeated member access macrosNobuyoshi Nakada2021-08-201-14/+14
|
* Module#ancestors should not return superclasses of refinementsShugo Maeda2021-08-202-0/+17
| | | | | | [ruby-core:86949] [Bug #14744] Reported by Eregon (Benoit Daloze). Thanks!
* * 2021-08-20 [ci skip]git2021-08-201-1/+1
|
* undefine alloc functions for C extensionsMike Dalessio2021-08-202-0/+2
| | | | | | | | per guidance in doc/extension.rdoc, these classes now undefine their alloc functions: - ObjectSpace::InternalObjectWrapper - Socket::Ifaddr
* Undefine the alloc function for T_DATA classesMike Dalessio2021-08-201-2/+13
| | | | | | | | | | | | | | which have not undefined or redefined it. When a `T_DATA` object is created whose class has not undefined or redefined the alloc function, the alloc function now gets undefined by Data_Wrap_Struct et al. Optionally, a future release may also warn that this being done. This should help developers of C extensions to meet the requirements explained in "doc/extension.rdoc". Without a check like this, there is no easy way for an author of a C extension to see where they have made a mistake.
* Remove old warning aged nearly 8 yearsNobuyoshi Nakada2021-08-194-39/+0
|
* Fix test failure on spec/ruby/language/pattern_matching_spec.rbKazuki Tsujimoto2021-08-191-5/+8
| | | | https://github.com/ruby/ruby/runs/3369486308
* Allow omission of parentheses in one line pattern matching [Feature #16182]Kazuki Tsujimoto2021-08-194-10/+27
|
* Hard-link executable files to mae runnableNobuyoshi Nakada2021-08-191-4/+14
| | | | | As `$ORIGIN` on Linux is refered from the real path of the executable file, symbolic linked executable file cannot work.
* * 2021-08-19 [ci skip]git2021-08-191-1/+1
|
* Bundle RBS 1.4.0 & typeprof 0.15.2 (#4753)Soutaro Matsumoto2021-08-191-2/+2
| | | | | * Bundle RBS 1.4.0 * Bundle typeprof 0.15.2
* Silence LoadError only if it is for `rubygems` itselfDaniel Niknam2021-08-181-1/+3
| | | | | Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net> Co-authored-by: Hiroshi SHIBATA <hsbt@ruby-lang.org>
* rb_fix2uint should use FIXNUM_NEGATIVE_PJohn Hawthorn2021-08-181-2/+2
| | | | | | | | | | | | | | rb_num_negative_int_p is equivalent to calling the "<" method on Integer (and checking whether it is overridden), where in this case we are interested in whether the "actual" value can fit inside an unsigned int. This also was slow because rb_num_negative_int_p calls rb_method_basic_definition_p, doing a method lookup to check for < being overridden. This replaces the check in both rb_fix2uint and rb_fix2ushort with FIXNUM_NEGATIVE_P which simply checks whether the VALUE is signed.
* SIGILL can raise at stack overflow on Linux too [Bug #18084]Nobuyoshi Nakada2021-08-181-1/+1
|
* Rewind execution tags more at stack overflow [Bug #18084]Nobuyoshi Nakada2021-08-181-2/+3
|
* Replace f_boolcast with RBOOL macroS.H2021-08-183-15/+11
| | | | | | | * Move f_boolcast definination * Remove f_boolcast macro defination * to
* * 2021-08-18 [ci skip]git2021-08-181-1/+1
|
* [ruby/date] Update zonetab.h at 2021-08-11Nobuyoshi Nakada2021-08-171-7/+7
| | | | https://github.com/ruby/date/commit/de7dca353f
* [DOC] Fix the rdoc for File::Stat#size? [ci skip]Akinori MUSHA2021-08-171-3/+5
|
* Treat NULL fake string as an empty stringNobuyoshi Nakada2021-08-171-0/+5
| | | | And the NULL string must be of size 0.
* Mention update to Unicode Version 13.0.0 and Emoji Version 13.1Martin Dürst2021-08-171-0/+5
| | | | | Mention the update to Unicode Version 13.0.0 and Unicode Emoji Version 13.1 in NEWS.md. This completes issue #17750. [ci skip]
* * 2021-08-17 [ci skip]git2021-08-171-1/+1
|
* Take into account data in emoji-variation-sequences.txt in tests.Martin Dürst2021-08-171-4/+4
| | | | | | | | | | | The emoji data in emoji-variation-sequences.txt was not used for in test/ruby/enc/test_emoji_breaks.rb, for unknown reasons. It turned out that the format of each of the emoji data/test files is slightly different, and that we didn't take into account that empty fields after a semicolon, as present in emoji-variation-sequences.txt, led to less fields than expected when using split. This addresses issue #18027.
* `popen()` is not available on emscriptenNobuyoshi Nakada2021-08-162-2/+6
|
* Suppress unused-variable warningsNobuyoshi Nakada2021-08-162-4/+4
|
* `SIZE_MAX` is not `size_t` on emscriptenNobuyoshi Nakada2021-08-161-3/+3
|