[#41531] [Bug #3385] ext/dbm: accept various version of db — Takahiro Kambe <redmine@...>
Bug #3385: ext/dbm: accept various version of db
2010年6月3日23:38 Takahiro Kambe <redmine@ruby-lang.org>:
2011年11月12日8:14 Tanaka Akira <akr@fsij.org>:
[#41536] RUBY_DEBUG=gc_stress [FATAL] failed to allocate memory — Tanaka Akira <akr@...>
コンパイル時に RUBY_DEBUG_ENV というマクロを定義しておくと、
[#41543] [Bug #3398] 1.9.2 SEGV during test-all — Yuki Sonoda <redmine@...>
Bug #3398: 1.9.2 SEGV during test-all
[#41597] [Bug #3433] Error that occurs by BasicSocket#sendmsg — Masaya Tarui <redmine@...>
Bug #3433: Error that occurs by BasicSocket#sendmsg
[#41600] 質問・提案:cgi.rbの後継となるライブラリについて — Dice <tetradice@...>
Diceです。cgi.rbの後継ライブラリについて質問させてください。
藤岡です。
かくたにです。
藤岡さん、かくたにさん、返信ありがとうございます。
藤岡です。
Diceです。藤岡さん、返信ありがとうございます。
[#41610] [Bug #3443] requireが遅くなる — Yusuke Endoh <redmine@...>
Bug #3443: requireが遅くなる
[#41623] [Feature:trunk] argument delegation — Nobuyoshi Nakada <nobu@...>
なかだです。
遠藤です。
まつもと ゆきひろです
前田です。
[#41672] [Bug #3463] 1.9.2-preview3 で [BUG] gc_sweep(): unknown data type 0x0 — Tomoyuki Chikanaga <redmine@...>
チケット #3463 が更新されました。 (by Tomoyuki Chikanaga)
[#41674] [Bug #3464] win32ole failure load TYPELIB on mswin64 vista — sakiyama shin <redmine@...>
Bug #3464: win32ole failure load TYPELIB on mswin64 vista
[#41702] WIN32OLE_METHOD offset_vtbl — kuwamoto shintaro <beuniv@...>
こんばんわ
助田です。
こんにちは、なかむら(う)です。
助田です。
artonです。
2010/6/24 arton <artonx@yahoo.co.jp>:
[#41705] [Bug #3471][Rejected] ./miniruby sample/test.rbで1NotOK — Shyouhei Urabe <redmine@...>
チケット #3471 が更新されました。 (by Shyouhei Urabe)
2010年6月24日16:53 Shyouhei Urabe <redmine@ruby-lang.org>:
[#41711] [Bug #3473] make clear-installed-list — Usaku NAKAMURA <redmine@...>
Bug #3473: make clear-installed-list
[#41730] (ruby/tk) ruby_1_9_2 への backport — Hidetoshi NAGAI <nagai@...>
永井@知能.九工大です.
[#41752] [Bug #3490][Assigned] test_pack_utf8 failure on mswin64 — Yusuke Endoh <redmine@...>
チケット #3490 が更新されました。 (by Yusuke Endoh)
[#41760] Hash[] の引数が Array の場合の振る舞い — とみたまさひろ <tommy@...>
とみたです。
[ruby-dev:41536] RUBY_DEBUG=gc_stress [FATAL] failed to allocate memory
コンパイル時に RUBY_DEBUG_ENV というマクロを定義しておくと、
RUBY_DEBUG という環境変数が有効になって、
最初の最初から GC.stress を真にできたりするのですが、
現在は以下のようにうまく動きません。
% RUBY_DEBUG=gc_stress ./ruby -e 'p GC.stress'
[FATAL] failed to allocate memory
この問題は、Init_native_thread() が呼ばれる前に GC が起き、
garbage_collect_with_gvl() の中の ruby_thread_has_gvl_p() が偽になるのが
原因です。
解決するには Init_native_thread をもっと早く (最初のメモリ確保より前に)
呼べばいいはずで、以下のようにしてもいいでしょうか。
なお、環境変数で設定できると rubyspec を GC.stress = true で実行するなどに
便利です。
% svn diff --diff-cmd diff -x '-u -p'
Index: thread.c
===================================================================
--- thread.c (revision 28173)
+++ thread.c (working copy)
@@ -4239,7 +4239,6 @@ Init_Thread(void)
rb_define_method(rb_cThread, "add_trace_func", thread_add_trace_func_m, 1);
/* init thread core */
- Init_native_thread();
{
/* main thread setting */
{
Index: vm.c
===================================================================
--- vm.c (revision 28173)
+++ vm.c (working copy)
@@ -2110,6 +2110,8 @@ struct rb_objspace *rb_objspace_alloc(vo
#endif
void ruby_thread_init_stack(rb_thread_t *th);
+extern void Init_native_thread(void);
+
void
Init_BareVM(void)
{
@@ -2130,6 +2132,7 @@ Init_BareVM(void)
#endif
ruby_current_vm = vm;
+ Init_native_thread();
th_init2(th, 0);
th->vm = vm;
ruby_thread_init_stack(th);
Index: thread_pthread.c
===================================================================
--- thread_pthread.c (revision 28173)
+++ thread_pthread.c (working copy)
@@ -163,7 +163,7 @@ ruby_thread_set_native(rb_thread_t *th)
return pthread_setspecific(ruby_native_thread_key, th) == 0;
}
-static void
+void
Init_native_thread(void)
{
rb_thread_t *th = GET_THREAD();
Index: thread_win32.c
===================================================================
--- thread_win32.c (revision 28173)
+++ thread_win32.c (working copy)
@@ -44,7 +44,7 @@ ruby_thread_set_native(rb_thread_t *th)
return TlsSetValue(ruby_native_thread_key, th);
}
-static void
+void
Init_native_thread(void)
{
rb_thread_t *th = GET_THREAD();
--
[田中 哲][たなか あきら][Tanaka Akira]