diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-09-13 21:41:28 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-13 21:58:00 -0700 |
| commit | 0af2bd829e6aaab4faf2cc135bd8b01db728417b (patch) | |
| tree | 3005f9d734e173f60ba589e0808b130a04e93bee /src/rt/rust_builtin.cpp | |
| parent | a241deb97931b7c993e88c600d2b35912730a7e8 (diff) | |
| download | rust-0af2bd829e6aaab4faf2cc135bd8b01db728417b.tar.gz rust-0af2bd829e6aaab4faf2cc135bd8b01db728417b.zip | |
Remove all usage of change_dir_locked
While usage of change_dir_locked is synchronized against itself, it's not synchronized against other relative path usage, so I'm of the opinion that it just really doesn't help in running tests. In order to prevent the problems that have been cropping up, this completely removes the function. All existing tests (except one) using it have been moved to run-pass tests where they get their own process and don't need to be synchronized with anyone else. There is one now-ignored rustpkg test because when I moved it to a run-pass test apparently run-pass isn't set up to have 'extern mod rustc' (it ends up having linkage failures).
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 1871e7f36b3..4b718303f2c 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -603,18 +603,6 @@ rust_get_global_args_ptr() { return &global_args_ptr; } -static lock_and_signal change_dir_lock; - -extern "C" CDECL void -rust_take_change_dir_lock() { - change_dir_lock.lock(); -} - -extern "C" CDECL void -rust_drop_change_dir_lock() { - change_dir_lock.unlock(); -} - // Used by i386 __morestack extern "C" CDECL uintptr_t rust_get_task() { |
