github.com/ltltlt/go-source-code@v0.0.0-20190830023027-95be009773aa/cmd/internal/objabi/funcid.go (about) 1 // Copyright 2018 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package objabi 6 7 // A FuncID identifies particular functions that need to be treated 8 // specially by the runtime. 9 // Note that in some situations involving plugins, there may be multiple 10 // copies of a particular special runtime function. 11 // Note: this list must match the list in runtime/symtab.go. 12 type FuncID uint32 13 14 const ( 15 FuncID_normal FuncID = iota // not a special function 16 FuncID_goexit 17 FuncID_jmpdefer 18 FuncID_mcall 19 FuncID_morestack 20 FuncID_mstart 21 FuncID_rt0_go 22 FuncID_asmcgocall 23 FuncID_sigpanic 24 FuncID_runfinq 25 FuncID_bgsweep 26 FuncID_forcegchelper 27 FuncID_timerproc 28 FuncID_gcBgMarkWorker 29 FuncID_systemstack_switch 30 FuncID_systemstack 31 FuncID_cgocallback_gofunc 32 FuncID_gogo 33 FuncID_externalthreadhandler 34 )