Skip to content

Commit ed4e880

Browse files
committed
---
yaml --- r: 8184 b: refs/heads/snap-stage3 c: dff256c h: refs/heads/master v: v3
1 parent 4029798 commit ed4e880

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 81e1564a7d6097164ff914eb7e341f9fca42f1df
4+
refs/heads/snap-stage3: dff256cd198b6575f5194abb059c1798b7198f6f
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/rt/rust_task_thread.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,14 @@ rust_task_thread::prepare_c_stack() {
389389
I(this, !extra_c_stack);
390390
if (!cached_c_stack) {
391391
cached_c_stack = create_stack(kernel, C_STACK_SIZE);
392+
config_valgrind_stack(cached_c_stack);
392393
}
393394
}
394395

395396
void
396397
rust_task_thread::unprepare_c_stack() {
397398
if (extra_c_stack) {
399+
unconfig_valgrind_stack(extra_c_stack);
398400
destroy_stack(kernel, extra_c_stack);
399401
extra_c_stack = NULL;
400402
}
@@ -412,15 +414,13 @@ rust_task_thread::borrow_c_stack() {
412414
your_stack = cached_c_stack;
413415
cached_c_stack = NULL;
414416
}
415-
config_valgrind_stack(your_stack);
416417
return your_stack;
417418
}
418419

419420
// NB: Runs on the Rust stack
420421
void
421422
rust_task_thread::return_c_stack(stk_seg *stack) {
422423
I(this, !extra_c_stack);
423-
unconfig_valgrind_stack(stack);
424424
if (!cached_c_stack) {
425425
cached_c_stack = stack;
426426
} else {

0 commit comments

Comments
 (0)