diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-13 15:09:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-13 15:09:22 +0000 |
commit | 4641b801664008c7ae509a79354da1bc84b6fc1c (patch) | |
tree | a27aa76689a6957d6342b2c9c409b78c01cafda1 /signal.c | |
parent | e0d427e855e514c758ffc8f776539abe70ad12d4 (diff) |
* gc.c (ruby_gc_stress): moved to rb_objspace_t.
* gc.c (gc_stress_get, gc_stress_set): VM local attribute.
* signal.c (sigsegv): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r-- | signal.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -554,12 +554,12 @@ sigsegv(int sig) { if (segv_received) { fprintf(stderr, "SEGV recieved in SEGV handler\n"); - exit(1); + exit(EXIT_FAILURE); } else { - extern int ruby_gc_stress; + extern int ruby_disable_gc_stress; segv_received = 1; - ruby_gc_stress = 0; + ruby_disable_gc_stress = 1; rb_bug("Segmentation fault"); } } |