fix: staticcheck and deadcode findings repo-wide, modernize counting loops
This commit is contained in:
@@ -14,7 +14,12 @@ import (
|
||||
)
|
||||
|
||||
// savedSP holds the Go stack pointer while a JIT call is in flight.
|
||||
// Referenced by the assembly trampoline (trampoline_amd64.s).
|
||||
// Written and read by the assembly trampoline (trampoline_amd64.s); no Go
|
||||
// code references it, which staticcheck and GoLand cannot see.
|
||||
//
|
||||
// noinspection GoUnusedGlobalVariable
|
||||
//
|
||||
//lint:ignore U1000 written and read by the assembly
|
||||
var savedSP uintptr
|
||||
|
||||
// enterJIT switches to the prepared stack and jumps to fn.
|
||||
|
||||
Reference in New Issue
Block a user