summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-09 22:32:55 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-09 22:32:55 (GMT)
commit7d8790cdc468a3f3743e580338567f4a16c4ef05 (patch)
tree56aed5e5dcbe3687848ef2f4c5f580c7d4d13e45 /main.c
parentccbf4ea1193d2d995ff9e5195a2add2c8851cb6f (diff)
* 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: svn+ssh://ci.ruby-lang.org/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 4d5f289..e815c9b 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);