File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
// Stacks
8
8
9
- static size_t const min_stk_bytes = 0x300 ;
9
+ // FIXME (issue #151): This should be 0x300; the change here is for
10
+ // practicality's sake until stack growth is working.
11
+ static size_t const min_stk_bytes = 0x300000 ;
10
12
11
13
// Task stack segments. Heap allocated and chained together.
12
14
@@ -200,6 +202,12 @@ rust_task::start(uintptr_t exit_task_glue,
200
202
void
201
203
rust_task::grow (size_t n_frame_bytes)
202
204
{
205
+ // FIXME (issue #151): Just fail rather than almost certainly crashing
206
+ // mysteriously later. The commented-out logic below won't work at all in
207
+ // the presence of non-word-aligned pointers.
208
+ abort ();
209
+
210
+ #if 0
203
211
stk_seg *old_stk = this->stk;
204
212
uintptr_t old_top = (uintptr_t) old_stk->limit;
205
213
uintptr_t old_bottom = (uintptr_t) &old_stk->data[0];
@@ -254,6 +262,7 @@ rust_task::grow(size_t n_frame_bytes)
254
262
"processed %d relocations", n_relocs);
255
263
del_stk(dom, old_stk);
256
264
dom->logptr("grown stk limit", new_top);
265
+ #endif
257
266
}
258
267
259
268
void
You can’t perform that action at this time.
0 commit comments