diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2010-08-20 11:05:06 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2010-08-20 11:05:06 -0700 |
| commit | fac28ad42fb1c14f158774bb1bccaa2eed38cf0a (patch) | |
| tree | 98d7a68dc06478c8b963f57767570782dbcd108a /src/rt/rust_task.cpp | |
| parent | 9363c1ab7f23b1a285be74a8859e1ca951283af7 (diff) | |
| download | rust-fac28ad42fb1c14f158774bb1bccaa2eed38cf0a.tar.gz rust-fac28ad42fb1c14f158774bb1bccaa2eed38cf0a.zip | |
Disable task-growing logic for now until #151 is fixed
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 12623255ff1..9497645b25f 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -6,7 +6,9 @@ // Stacks -static size_t const min_stk_bytes = 0x300; +// FIXME (issue #151): This should be 0x300; the change here is for +// practicality's sake until stack growth is working. +static size_t const min_stk_bytes = 0x300000; // Task stack segments. Heap allocated and chained together. @@ -200,6 +202,12 @@ rust_task::start(uintptr_t exit_task_glue, void rust_task::grow(size_t n_frame_bytes) { + // FIXME (issue #151): Just fail rather than almost certainly crashing + // mysteriously later. The commented-out logic below won't work at all in + // the presence of non-word-aligned pointers. + abort(); + +#if 0 stk_seg *old_stk = this->stk; uintptr_t old_top = (uintptr_t) old_stk->limit; uintptr_t old_bottom = (uintptr_t) &old_stk->data[0]; @@ -254,6 +262,7 @@ rust_task::grow(size_t n_frame_bytes) "processed %d relocations", n_relocs); del_stk(dom, old_stk); dom->logptr("grown stk limit", new_top); +#endif } void |
