Skip to content

Commit 97e1756

Browse files
committed
---
yaml --- r: 14166 b: refs/heads/try c: 8ad9cf8 h: refs/heads/master v: v3
1 parent c350ccd commit 97e1756

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-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: 5d2442d89cbfbba03545a877b7768fe2ac34ef82
5+
refs/heads/try: 8ad9cf8087f2d1f1badfb7c8616c0b11cc4aa6db
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rt/rust_task.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,11 @@ rust_task::config_notify(chan_handle chan) {
732732
notify_chan = chan;
733733
}
734734

735+
// This is the function that switches stacks by calling another function with
736+
// a single void* argument while changing the stack pointer. It has a funny
737+
// name because gdb doesn't normally like to backtrace through split stacks
738+
// (thinks it indicates a bug), but has a special case to allow functions
739+
// named __morestack to move the stack pointer around.
735740
extern "C" void __morestack(void *args, void *fn_ptr, uintptr_t stack_ptr);
736741

737742
static uintptr_t

0 commit comments

Comments
 (0)