Skip to content

Commit 272d143

Browse files
committed
---
yaml --- r: 14186 b: refs/heads/try c: fc028c3 h: refs/heads/master v: v3
1 parent adef3ec commit 272d143

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
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 5fc2e9e9ab9cf0329fb9f18c28c2df545e4e3edc
5+
refs/heads/try: fc028c30a0570e097f4f16f9731c1433226e5367
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/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

branches/try/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)