Skip to content

Commit 1ea02ee

Browse files
committed
---
yaml --- r: 8180 b: refs/heads/snap-stage3 c: 8ad9cf8 h: refs/heads/master v: v3
1 parent 7065290 commit 1ea02ee

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
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 5d2442d89cbfbba03545a877b7768fe2ac34ef82
4+
refs/heads/snap-stage3: 8ad9cf8087f2d1f1badfb7c8616c0b11cc4aa6db
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/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)