[#11952] NORETURN — "Nobuyoshi.Nakada" <nobu.nakada@...>

なかだです。

24 messages 2001/01/10
[#11956] Re: NORETURN — WATANABE Hirofumi <eban@...> 2001/01/10

わたなべです.

[#11957] Re: NORETURN — matz@... (Yukihiro Matsumoto) 2001/01/10

まつもと ゆきひろです

[#11958] Re: NORETURN — WATANABE Hirofumi <eban@...> 2001/01/10

わたなべです.

[#11959] CVS branches (Re: Re: NORETURN) — matz@... (Yukihiro Matsumoto) 2001/01/10

[#12087] string#index, gsub, []= のバグ? — Beyond <beyond@...>

18 messages 2001/01/27
[#12091] Re: string#index, gsub, []= のバグ? — matz@... (Yukihiro Matsumoto) 2001/01/27

まつもと ゆきひろです

[ruby-dev:12111] Re: string#index, gsub, []= のバグ?

From: nobu.nakada@...
Date: 2001-01-28 15:38:13 UTC
List: ruby-dev #12111
なかだです。

At Mon, 29 Jan 2001 00:09:39 +0900,
matz@zetabits.com (Yukihiro Matsumoto) wrote:
> GCのタイミングの問題だったようですね。indexもgsubも[]=も関係
> なしに。んで、発見しました。
> 
> # この類いを見つけるのには慣れがいるんですよね。

  難しいです。

# 久しぶりに gdb とか使ってしまった。

> @@ -1320,9 +1331,10 @@
> +	if (str_independent(str)) {
> +	    free(RSTRING(str)->ptr);
> +	    RSTRING(str)->orig = 0;
> +	}
>  	RSTRING(str)->len = RSTRING(str2)->len;
>  	RSTRING(str)->ptr = RSTRING(str2)->ptr;
>  	RSTRING(str)->orig = RSTRING(str2)->orig;

  こっちは 0 にしなくてもいいような気も。

-- 
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦

In This Thread