diff --git a/src/runtime/interrupt/checkpoint.go b/src/runtime/interrupt/checkpoint.go index f02a2bead..4cb622f3e 100644 --- a/src/runtime/interrupt/checkpoint.go +++ b/src/runtime/interrupt/checkpoint.go @@ -20,6 +20,10 @@ package interrupt // if c.Saved() { // c.Jump() // } +// +// Warning: only use this in special runtime code! If it is used from a normal +// goroutine, and the scheduler switches to a different goroutine, havoc will +// ensure. type Checkpoint struct { jumpSP uintptr jumpPC uintptr