Skip to content

Commit b2036dc

Browse files
committed
---
yaml --- r: 14191 b: refs/heads/try c: b9e0ee8 h: refs/heads/master i: 14189: 43c8aaf 14187: 337e9a5 14183: 959631f 14175: e4eba97 v: v3
1 parent fe4c211 commit b2036dc

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
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: 3af4b2c998b90eed5baaf033f92cf5aae06cfc4b
5+
refs/heads/try: b9e0ee8e7ec0cbc6d194fe220c71a5c39a2560e7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rt/rust_stack.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ const uint8_t stack_canary[] = {0xAB, 0xCD, 0xAB, 0xCD,
1919
0xAB, 0xCD, 0xAB, 0xCD,
2020
0xAB, 0xCD, 0xAB, 0xCD};
2121

22+
// Used by create_stack
2223
void
2324
register_valgrind_stack(stk_seg *stk);
2425

26+
// Used by destroy_stack
2527
void
2628
deregister_valgrind_stack(stk_seg *stk);
2729

30+
// Used by create_stack
2831
void
2932
add_stack_canary(stk_seg *stk);
3033

@@ -47,9 +50,12 @@ destroy_stack(T allocer, stk_seg *stk) {
4750
allocer->free(stk);
4851
}
4952

53+
// Must be called before each time a stack is reused to tell valgrind
54+
// that the stack is accessible.
5055
void
5156
prepare_valgrind_stack(stk_seg *stk);
5257

58+
// Run a sanity check
5359
void
5460
check_stack_canary(stk_seg *stk);
5561

0 commit comments

Comments
 (0)