Hi all, I have for the longest time thought of "go:nosplit" as a runtime-specific thing which wasn't available to arbitrary package authors.
Then, I found this from "go doc compile" ``` //go:nosplit The //go:nosplit directive specifies that the next function declared in the file must not include a stack overflow check. This is most commonly used by low-level runtime sources invoked at times when it is unsafe for the calling goroutine to be preempted. ``` I am interested in knowing 1. Can it indeed be used in arbitrary packages? 2. Does it indeed prevent the emission/addition of pre-emption instructions in the function it annotates? 3. Can it be used with gccgo? Thanks for any info, Scott -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.