diff options
author | tarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-29 16:32:59 +0000 |
---|---|---|
committer | tarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-29 16:32:59 +0000 |
commit | d0914b355289eaa0498928752466d2ec5660cf2a (patch) | |
tree | 9dd2447b6331090f7b19ade4f2fe366321c2bb3e /thread.c | |
parent | 2c1a7dc85eceb869c4c8c517b61c28335fc881f4 (diff) | |
download | ruby-d0914b355289eaa0498928752466d2ec5660cf2a.tar.gz |
* thread.c (RB_GC_SAVE_MACHINE_CONTEXT): start GC
by switching the thread if gc_stress == true
* gc.c (ruby_gc_stress_start): dotto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -99,10 +99,13 @@ 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); +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 { \ |