ruby-changes:16126
From: tarui <ko1@a...>
Date: Sun, 30 May 2010 02:26:13 +0900 (JST)
Subject: [ruby-changes:16126] Ruby:r28081 (trunk): * thread.c (RB_GC_SAVE_MACHINE_CONTEXT), gc.c (ruby_gc_stress_start):
tarui 2010-05-30 02:26:01 +0900 (Sun, 30 May 2010) New Revision: 28081 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28081 Log: * thread.c (RB_GC_SAVE_MACHINE_CONTEXT), gc.c (ruby_gc_stress_start): revert r28078. Modified files: trunk/ChangeLog trunk/gc.c trunk/thread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 28080) +++ ChangeLog (revision 28081) @@ -1,3 +1,8 @@ +Sun May 30 02:20:26 2010 Masaya Tarui <tarui@r...> + + * thread.c (RB_GC_SAVE_MACHINE_CONTEXT), gc.c (ruby_gc_stress_start): + revert r28078. + Sun May 30 02:21:34 2010 Yusuke Endoh <mame@t...> * ext/zlib/zlib.c (zstream_append_input2): add RB_GC_GUARD. Index: thread.c =================================================================== --- thread.c (revision 28080) +++ thread.c (revision 28081) @@ -99,13 +99,10 @@ static inline void blocking_region_end(rb_thread_t *th, struct rb_blocking_region_buffer *region); -void ruby_gc_stress_start(void); - #define RB_GC_SAVE_MACHINE_CONTEXT(th) \ do { \ rb_gc_save_machine_context(th); \ SET_MACHINE_STACK_END(&(th)->machine_stack_end); \ - ruby_gc_stress_start(); \ } while (0) #define GVL_UNLOCK_BEGIN() do { \ Index: gc.c =================================================================== --- gc.c (revision 28080) +++ gc.c (revision 28081) @@ -517,14 +517,6 @@ return ruby_gc_stress ? Qtrue : Qfalse; } -void -ruby_gc_stress_start(void) -{ - rb_objspace_t *objspace = &rb_objspace; - if(ruby_gc_stress) - rb_gc(); -} - /* * call-seq: * GC.stress = bool -> bool -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/