From 4ef1ec580aaf9f95d66c1654ce942f5e454a0b4d Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 27 Jul 2011 14:34:39 -0700 Subject: Do all runtime calls to getenv at initialization getenv is not threadsafe and (maybe as a result) it's randomly crashing with CFLAGS=-g and RUST_THREADS=32. Calls from rust code are still on their own. --- src/rt/rust_builtin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rt/rust_builtin.cpp') diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 4870c9fe545..6f45227bb8b 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -857,10 +857,10 @@ clone_chan(rust_task *task, rust_chan *chan) { } // defined in rust_task.cpp -extern size_t g_min_stack_size; +extern size_t g_custom_min_stack_size; extern "C" CDECL void set_min_stack(rust_task *task, uintptr_t stack_size) { - g_min_stack_size = stack_size; + g_custom_min_stack_size = stack_size; } // -- cgit 1.4.1-3-g733a5