Peter Zhu 6e36841dbd Free rb_native_thread memory at fork
We never freed any resources of rb_native_thread at fork because it would
cause it to hang. This is because it called rb_native_cond_destroy for
condition variables.  We can't call rb_native_cond_destroy here because
according to the specs of pthread_cond_destroy:

    Attempting to destroy a condition variable upon which other threads
    are currently blocked results in undefined behavior.

Specifically, glibc's pthread_cond_destroy waits on all the other listeners.
Since after forking all the threads are dead, the condition variable's
listeners will never wake up, so it will hang forever.

This commit changes it to only free the memory and none of the condition
variables.
2025-06-12 15:23:50 -04:00
2025-06-10 21:46:14 +09:00
2025-06-11 18:11:36 -07:00
2025-06-11 09:38:56 +09:00
2025-06-12 17:08:22 +02:00
2025-06-12 17:08:22 +02:00
2025-06-11 18:11:36 -07:00
2025-06-12 09:30:09 +02:00
2025-06-04 15:31:28 +09:00
2025-05-20 22:12:58 +09:00
2025-06-10 21:13:37 +02:00
2025-05-28 11:44:07 -04:00
2025-06-09 21:22:36 +09:00
GPL
2025-05-25 15:22:43 +09:00
2025-05-25 15:22:43 +09:00
2025-06-10 12:25:32 +02:00
2025-06-12 09:30:09 +02:00
2025-06-05 22:33:02 +09:00
2025-06-09 16:23:08 +09:00
2025-06-12 09:30:09 +02:00
2025-06-12 17:08:22 +02:00
2025-06-12 17:08:22 +02:00
2025-05-22 10:17:46 -04:00
2025-06-05 22:33:02 +09:00
2025-05-31 04:01:33 +09:00
2025-05-31 04:01:33 +09:00
2025-06-12 15:23:50 -04:00
2025-05-31 04:01:33 +09:00
2025-06-12 17:08:22 +02:00
2025-06-12 17:08:22 +02:00
2025-06-04 13:13:50 +02:00

Actions Status: MinGW 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%