diff options
| author | Vadim Chugunov <vadimcn@gmail.com> | 2014-08-05 20:53:42 -0700 |
|---|---|---|
| committer | Vadim Chugunov <vadimcn@gmail.com> | 2014-08-05 21:00:31 -0700 |
| commit | 881bfb1a180a1b545daa9da1539ec4c8ebda7ed1 (patch) | |
| tree | 82e8aacef11730b484fb8c3b3172b8f27074aebb /src/libnative | |
| parent | cd2003ffd8dd976342f9e8fc1429ae93d6780e81 (diff) | |
| download | rust-881bfb1a180a1b545daa9da1539ec4c8ebda7ed1.tar.gz rust-881bfb1a180a1b545daa9da1539ec4c8ebda7ed1.zip | |
Renamed `record_stack_bounds` for clarity.
For a good measure, implemented target_record_stack_bounds for 32-bit Windows as well.
Diffstat (limited to 'src/libnative')
| -rw-r--r-- | src/libnative/lib.rs | 2 | ||||
| -rw-r--r-- | src/libnative/task.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libnative/lib.rs b/src/libnative/lib.rs index d358aa6b645..c7b89b6cb91 100644 --- a/src/libnative/lib.rs +++ b/src/libnative/lib.rs @@ -137,7 +137,7 @@ pub fn start(argc: int, argv: *const *const u8, main: proc()) -> int { task.name = Some(str::Slice("<main>")); drop(task.run(|| { unsafe { - rt::stack::record_stack_bounds(my_stack_bottom, my_stack_top); + rt::stack::record_os_managed_stack_bounds(my_stack_bottom, my_stack_top); } exit_code = Some(run(main.take_unwrap())); }).destroy()); diff --git a/src/libnative/task.rs b/src/libnative/task.rs index c72d6c24a7c..55806caaf13 100644 --- a/src/libnative/task.rs +++ b/src/libnative/task.rs @@ -84,7 +84,7 @@ pub fn spawn_opts(opts: TaskOpts, f: proc():Send) { let addr = &something_around_the_top_of_the_stack as *const int; let my_stack = addr as uint; unsafe { - stack::record_stack_bounds(my_stack - stack + 1024, my_stack); + stack::record_os_managed_stack_bounds(my_stack - stack + 1024, my_stack); } let mut ops = ops; ops.stack_bounds = (my_stack - stack + 1024, my_stack); |
