File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
branches/snap-stage3/src/rt Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 81e1564a7d6097164ff914eb7e341f9fca42f1df
4
+ refs/heads/snap-stage3: dff256cd198b6575f5194abb059c1798b7198f6f
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -389,12 +389,14 @@ rust_task_thread::prepare_c_stack() {
389
389
I (this , !extra_c_stack);
390
390
if (!cached_c_stack) {
391
391
cached_c_stack = create_stack (kernel, C_STACK_SIZE);
392
+ config_valgrind_stack (cached_c_stack);
392
393
}
393
394
}
394
395
395
396
void
396
397
rust_task_thread::unprepare_c_stack () {
397
398
if (extra_c_stack) {
399
+ unconfig_valgrind_stack (extra_c_stack);
398
400
destroy_stack (kernel, extra_c_stack);
399
401
extra_c_stack = NULL ;
400
402
}
@@ -412,15 +414,13 @@ rust_task_thread::borrow_c_stack() {
412
414
your_stack = cached_c_stack;
413
415
cached_c_stack = NULL ;
414
416
}
415
- config_valgrind_stack (your_stack);
416
417
return your_stack;
417
418
}
418
419
419
420
// NB: Runs on the Rust stack
420
421
void
421
422
rust_task_thread::return_c_stack (stk_seg *stack) {
422
423
I (this , !extra_c_stack);
423
- unconfig_valgrind_stack (stack);
424
424
if (!cached_c_stack) {
425
425
cached_c_stack = stack;
426
426
} else {
You can’t perform that action at this time.
0 commit comments