[#2367] Standard libraries — Dave Thomas <dave@...>

From ruby-dev summary:

60 messages 2004/02/11

[#2397] PATCH: deprecate cgi-lib, getopts, importenv, parsearg from standard library — Gavin Sinclair <gsinclair@...>

Index: cgi-lib.rb

15 messages 2004/02/12

[#2465] PATCH: OpenStruct#initialize to yield self — Gavin Sinclair <gsinclair@...>

This is a common approach I use to object initialization; I don't know

24 messages 2004/02/19

Re: rehash segfault

From: matz@... (Yukihiro Matsumoto)
Date: 2004-02-25 08:44:30 UTC
List: ruby-core #2499
Hi,

In message "Re: rehash segfault"
    on 04/02/25, Eivind Eklund <eivind@FreeBSD.org> writes:

|> Ruby hashes are not completely thread-safe.  I knew the problem
|> existed, but I couldn't fix it without significant slow-down.
|
|What is the exact problem that makes it hard to fix without slowdown?

Hash calls back a few Ruby methods, e.g. "hash", "eql?", etc, during
which context switch may happen.  To avoid this, the easiest way is to
prepare mutex for each hash and protect every hash operation, that, I
think, cause significant slow-down.

							matz.

In This Thread