Peter Zhu 6acf03618a Mark iseq keyword default values during compilation
During compilation, we write keyword default values into the iseq, so we
should mark it to ensure it does not get GC'd.

This might fix issues on ASAN like
http://ci.rvm.jp/logfiles/brlog.trunk_asan.20240927-194923

    ==805257==ERROR: AddressSanitizer: use-after-poison on address 0x7b7e5e3e2828 at pc 0x5e09ac4822f8 bp 0x7ffde56b0140 sp 0x7ffde56b0138
    READ of size 8 at 0x7b7e5e3e2828 thread T0
    #0 0x5e09ac4822f7 in RB_BUILTIN_TYPE include/ruby/internal/value_type.h:191:30
    #1 0x5e09ac4822f7 in rbimpl_RB_TYPE_P_fastpath include/ruby/internal/value_type.h:352:19
    #2 0x5e09ac4822f7 in gc_mark gc/default.c:4488:9
    #3 0x5e09ac51011e in rb_iseq_mark_and_move iseq.c:361:17
    #4 0x5e09ac4b85c4 in rb_imemo_mark_and_move imemo.c:386:9
    #5 0x5e09ac467544 in rb_gc_mark_children gc.c:2508:9
    #6 0x5e09ac482c24 in gc_mark_children gc/default.c:4673:5
    #7 0x5e09ac482c24 in gc_mark_stacked_objects gc/default.c:4694:9
    #8 0x5e09ac482c24 in gc_mark_stacked_objects_all gc/default.c:4732:12
    #9 0x5e09ac48c7f9 in gc_marks_rest gc/default.c:5755:9
    #10 0x5e09ac48c7f9 in gc_marks gc/default.c:5870:9
    #11 0x5e09ac48c7f9 in gc_start gc/default.c:6517:13
2024-10-02 08:54:18 -04:00
2024-10-01 17:35:38 +09:00
2024-09-23 14:29:25 +09:00
2024-10-02 14:13:00 +09:00
2024-10-02 18:03:18 +09:00
2024-09-24 15:12:48 +09:00
2024-09-20 22:50:27 +09:00
2024-05-02 10:12:58 -04:00
2024-09-18 21:03:48 +09:00
2024-06-04 12:40:08 +09:00
2024-10-01 15:47:20 -04:00
2024-09-29 21:21:55 -04:00
2024-09-30 18:04:41 +09:00
2024-09-19 10:14:17 -07:00
2024-04-15 12:08:07 +09:00
2024-04-07 16:44:42 +09:00
2024-02-21 23:37:20 +09:00
2024-02-21 23:37:20 +09:00
2024-04-07 17:29:23 +09:00
2024-09-20 19:26:37 +09:00
2024-09-30 20:35:46 +09:00
2024-09-19 12:10:27 -04:00
2024-09-08 23:40:18 +09:00
GPL
2024-09-27 09:58:32 +09:00
2024-09-26 20:01:20 +09:00
2024-04-27 21:55:28 +09:00
2024-07-08 12:24:33 +02:00
2024-03-19 09:26:49 +01:00
2024-10-02 17:07:46 +09:00
2024-03-06 15:33:43 -05:00
2024-07-20 11:25:26 +09:00
2024-09-10 14:04:41 -04:00
2024-10-02 17:32:35 +09:00
2024-09-17 12:46:01 +09:00
2024-09-27 09:58:17 +09:00
2024-09-19 18:08:12 +09:00
2024-04-04 18:20:13 +09:00
2024-09-25 10:40:14 +09:00
2024-03-12 13:44:48 -07:00
2024-08-16 15:43:43 +09:00
2024-04-08 11:13:29 +09:00
2024-09-23 16:39:31 -07:00
2024-04-15 12:08:07 +09:00
2024-09-26 17:53:21 +09:00
2024-03-19 09:26:49 +01:00
2024-07-05 21:20:54 +09:00

Actions Status: MinGW Actions Status: RJIT Actions Status: Ubuntu Actions Status: Windows Travis Status

What is Ruby?

Ruby is an interpreted object-oriented programming language often used for web development. It also offers many scripting features to process plain text and serialized files, or manage system tasks. It is simple, straightforward, and extensible.

Features of Ruby

  • Simple Syntax
  • Normal Object-oriented Features (e.g. class, method calls)
  • Advanced Object-oriented Features (e.g. mix-in, singleton-method)
  • Operator Overloading
  • Exception Handling
  • Iterators and Closures
  • Garbage Collection
  • Dynamic Loading of Object Files (on some architectures)
  • Highly Portable (works on many Unix-like/POSIX compatible platforms as well as Windows, macOS, etc.) cf. https://docs.ruby-lang.org/en/master/maintainers_md.html#label-Platform+Maintainers

How to get Ruby

For a complete list of ways to install Ruby, including using third-party tools like rvm, see:

https://www.ruby-lang.org/en/downloads/

You can download release packages and the snapshot of the repository. If you want to download whole versions of Ruby, please visit https://www.ruby-lang.org/en/downloads/releases/.

Download with Git

The mirror of the Ruby source tree can be checked out with the following command:

$ git clone https://github.com/ruby/ruby.git

There are some other branches under development. Try the following command to see the list of branches:

$ git ls-remote https://github.com/ruby/ruby.git

You may also want to use https://git.ruby-lang.org/ruby.git (actual master of Ruby source) if you are a committer.

How to build

See Building Ruby

Ruby home page

https://www.ruby-lang.org/

Documentation

Mailing list

There is a mailing list to discuss Ruby. To subscribe to this list, please send the following phrase:

join

in the mail subject (not body) to the address ruby-talk-request@ml.ruby-lang.org.

Copying

See the file COPYING.

Feedback

Questions about the Ruby language can be asked on the Ruby-Talk mailing list or on websites like https://stackoverflow.com.

Bugs should be reported at https://bugs.ruby-lang.org. Read "Reporting Issues" for more information.

Contributing

See "Contributing to Ruby", which includes setup and build instructions.

The Author

Ruby was originally designed and developed by Yukihiro Matsumoto (Matz) in 1995.

matz@ruby-lang.org

Description
Languages
Ruby 58.9%
C 29.7%
Rust 4%
C++ 3%
Makefile 2.1%
Other 2.2%