Skip to content

Commit 48f11c2

Browse files
committed
---
yaml --- r: 11180 b: refs/heads/master c: fc028c3 h: refs/heads/master v: v3
1 parent 3173d29 commit 48f11c2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 5fc2e9e9ab9cf0329fb9f18c28c2df545e4e3edc
2+
refs/heads/master: fc028c30a0570e097f4f16f9731c1433226e5367
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rt/rust_stack.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@ struct stk_seg {
1313
uint8_t data[];
1414
};
1515

16+
void
17+
add_stack_canary(stk_seg *stk);
18+
1619
template <class T>
1720
stk_seg *
1821
create_stack(T allocer, size_t sz) {
1922
size_t total_sz = sizeof(stk_seg) + sz;
2023
stk_seg *stk = (stk_seg *)allocer->malloc(total_sz, "stack");
2124
memset(stk, 0, sizeof(stk_seg));
25+
add_stack_canary(stk);
2226
stk->end = (uintptr_t) &stk->data[sz];
2327
return stk;
2428
}
@@ -35,9 +39,6 @@ config_valgrind_stack(stk_seg *stk);
3539
void
3640
unconfig_valgrind_stack(stk_seg *stk);
3741

38-
void
39-
add_stack_canary(stk_seg *stk);
40-
4142
void
4243
check_stack_canary(stk_seg *stk);
4344

trunk/src/rt/rust_task.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,6 @@ rust_task::new_stack(size_t requested_sz) {
593593
size_t sz = rust_stk_sz + RED_ZONE_SIZE;
594594
stk_seg *new_stk = create_stack(this, sz);
595595
LOGPTR(thread, "new stk", (uintptr_t)new_stk);
596-
add_stack_canary(new_stk);
597596
new_stk->prev = NULL;
598597
new_stk->next = stk;
599598
LOGPTR(thread, "stk end", new_stk->end);

0 commit comments

Comments
 (0)