[#3524] GC target (Re: [ruby-list:10035] Re: Ruby/Gtk text widget) — "D.Kanda" <MAP2303@...>
7 messages
1998/10/13
[#3525] Re: GC target (Re: [ruby-list:10035] Re: Ruby/Gtk text widget)
— matz@... (Yukihiro Matsumoto)
1998/10/13
まつもと ゆきひろです
[#3536] Re: [ruby-list:10256] Re: for が修飾子だったら — Junichi Kurokawa <jun@...>
Reply-To: ruby-devとしました。
15 messages
1998/10/22
[#3540] Re: [ruby-list:10256] Re: for が修飾子だったら
— Junichi Kurokawa <jun@...>
1998/10/23
>>>>> "Y" == Yukihiro Matsumoto <matz@netlab.co.jp> writes:
[#3543] Re: for が修飾子だったら
— ARIMA Yasuhiro <fit0298@...>
1998/10/23
Regard to "[ruby-dev:3540] Re: [ruby-list:10256] Re: for が修飾子だったら"
[#3551] [BUG?] gsub — Shin-ichro Hara <sinara@...>
原です。
10 messages
1998/10/27
[ruby-dev:3563] Re: ([nil]*i).compact bug?
From:
Kazuhiro HIWADA <hiwada@...>
Date:
1998-10-31 13:32:38 UTC
List:
ruby-dev #3563
ひわだです。
ひわだ> % ruby -e "p [nil, nil].compact"
ひわだ> ruby in realloc(): warning: chunk is already free.
ひわだ> #freebsd2.2.2 がまずいのかも。
man realloc をみたところ freebsd2.2.2 では size が 0 だとfreeしたうえ
で null pointer を返してくれるみたいです。freebsd2.2.7 では null が返っ
たりしないみたいなんですが。
とりあえず、freebsd2.2.2では以下で動いてます ^^;。
--- gc.c.orig Sat Oct 31 21:54:38 1998
+++ gc.c Sat Oct 31 22:06:24 1998
@@ -97,7 +97,7 @@
if (!ptr) return xmalloc(size);
malloc_memories += size;
mem = realloc(ptr, size);
- if (!mem) {
+ if (!mem && size) {
gc_gc();
mem = realloc(ptr, size);
if (!mem)