mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread.c (RB_GC_SAVE_MACHINE_CONTEXT), gc.c (ruby_gc_stress_start):
revert r28078. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1887f60a85
commit
12a99794b4
3 changed files with 5 additions and 11 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun May 30 02:20:26 2010 Masaya Tarui <tarui@ruby-lnag.org>
|
||||||
|
|
||||||
|
* 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@tsg.ne.jp>
|
Sun May 30 02:21:34 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
* ext/zlib/zlib.c (zstream_append_input2): add RB_GC_GUARD.
|
* ext/zlib/zlib.c (zstream_append_input2): add RB_GC_GUARD.
|
||||||
|
|
8
gc.c
8
gc.c
|
@ -517,14 +517,6 @@ gc_stress_get(VALUE self)
|
||||||
return ruby_gc_stress ? Qtrue : Qfalse;
|
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:
|
* call-seq:
|
||||||
* GC.stress = bool -> bool
|
* GC.stress = bool -> bool
|
||||||
|
|
3
thread.c
3
thread.c
|
@ -99,13 +99,10 @@ static void reset_unblock_function(rb_thread_t *th, const struct rb_unblock_call
|
||||||
|
|
||||||
static inline void blocking_region_end(rb_thread_t *th, struct rb_blocking_region_buffer *region);
|
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) \
|
#define RB_GC_SAVE_MACHINE_CONTEXT(th) \
|
||||||
do { \
|
do { \
|
||||||
rb_gc_save_machine_context(th); \
|
rb_gc_save_machine_context(th); \
|
||||||
SET_MACHINE_STACK_END(&(th)->machine_stack_end); \
|
SET_MACHINE_STACK_END(&(th)->machine_stack_end); \
|
||||||
ruby_gc_stress_start(); \
|
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define GVL_UNLOCK_BEGIN() do { \
|
#define GVL_UNLOCK_BEGIN() do { \
|
||||||
|
|
Loading…
Reference in a new issue