summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-09 22:32:55 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-09 22:32:55 +0000
commitac65be0b18ae7c13f020fdac861d9253a07c5066 (patch)
tree56aed5e5dcbe3687848ef2f4c5f580c7d4d13e45 /main.c
parent0a1c2752c22efc040ffef044311ef2e47a38762b (diff)
downloadruby-ac65be0b18ae7c13f020fdac861d9253a07c5066.tar.gz
ruby-ac65be0b18ae7c13f020fdac861d9253a07c5066.tar.xz
ruby-ac65be0b18ae7c13f020fdac861d9253a07c5066.zip
* gc.c (gc_stress): renamed from always_gc and enabled by default.
(gc_stress_get): new function for GC.stress. (gc_stress_set): new function for GC.stress=. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 4d5f2896e..e815c9b21 100644
--- a/main.c
+++ b/main.c
@@ -25,9 +25,9 @@ static void objcdummyfunction( void ) { objc_msgSend(); }
int
main(int argc, char **argv, char **envp)
{
-#ifdef RUBY_GC_DEBUG
- RUBY_EXTERN int always_gc;
- always_gc = getenv("RUBY_ALWAYS_GC") != NULL;
+#ifdef RUBY_GC_STRESS
+ RUBY_EXTERN int gc_stress;
+ gc_stress = getenv("RUBY_GC_STRESS") != NULL;
#endif
#ifdef _WIN32
NtInitialize(&argc, &argv);