- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for inittasks (0.1 sec)
-
src/cmd/link/internal/ld/inittask.go
// Normally the inittask list will be run on program startup. ctxt.mainInittasks = ctxt.inittaskSym([]string{"main..inittask"}, "go:main.inittasks") case BuildModePlugin: // For plugins, the list will be run on plugin load. ctxt.mainInittasks = ctxt.inittaskSym([]string{fmt.Sprintf("%s..inittask", objabi.PathToPrefix(*flagPluginPath))}, "go:plugin.inittasks") // Make symbol local so multiple plugins don't clobber each other's inittask list.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 20:09:45 UTC 2024 - 6.2K bytes - Viewed (0) -
src/plugin/plugin_dlopen.go
func lastmoduleinit() (pluginpath string, syms map[string]any, inittasks []*initTask, errstr string) // doInit is defined in package runtime. // //go:linkname doInit runtime.doInit func doInit(t []*initTask) type initTask struct { // fields defined in runtime.initTask. We only handle pointers to an initTask // in this package, so the contents are irrelevant.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 14 16:55:22 UTC 2023 - 3.9K bytes - Viewed (0) -
src/runtime/plugin.go
package runtime import ( "internal/abi" "unsafe" ) //go:linkname plugin_lastmoduleinit plugin.lastmoduleinit func plugin_lastmoduleinit() (path string, syms map[string]any, initTasks []*initTask, errstr string) { var md *moduledata for pmd := firstmoduledata.next; pmd != nil; pmd = pmd.next { if pmd.bad { md = nil // we only want the last module continue } md = pmd }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 4.4K bytes - Viewed (0) -
src/cmd/link/internal/ld/main.go
default: addlibpath(ctxt, "command line", "command line", flag.Arg(0), "main", "", zerofp) } bench.Start("loadlib") ctxt.loadlib() bench.Start("inittasks") ctxt.inittasks() bench.Start("deadcode") deadcode(ctxt) bench.Start("linksetup") ctxt.linksetup() bench.Start("dostrdata") ctxt.dostrdata() if buildcfg.Experiment.FieldTrack {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:59:50 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/link/internal/ld/deadcode.go
continue // don't mark referenced symbol - it is not needed in the final binary. case objabi.R_INITORDER: // inittasks has already run, so any R_INITORDER links are now // superfluous - the only live inittask records are those which are // in a scheduled list somewhere (e.g. runtime.moduledata.inittasks). continue } rs := r.Sym() if isgotype && usedInIface && d.ldr.IsGoType(rs) && !d.ldr.AttrUsedInIface(rs) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 14:52:41 UTC 2024 - 19K bytes - Viewed (0) -
src/cmd/link/internal/ld/symtab.go
nilSlice() // pkghashes slice } // Add inittasks slice t := ctxt.mainInittasks if t != 0 { moduledata.AddAddr(ctxt.Arch, t) moduledata.AddUint(ctxt.Arch, uint64(ldr.SymSize(t)/int64(ctxt.Arch.PtrSize))) moduledata.AddUint(ctxt.Arch, uint64(ldr.SymSize(t)/int64(ctxt.Arch.PtrSize))) } else { // Some build modes have no inittasks, like a shared library. // Its inittask list will be constructed by a higher-level
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 13 16:29:40 UTC 2023 - 29.2K bytes - Viewed (0) -
src/runtime/symtab.go
ptab []ptabEntry pluginpath string pkghashes []modulehash // This slice records the initializing tasks that need to be // done to start up the program. It is built by the linker. inittasks []*initTask modulename string modulehashes []modulehash hasmain uint8 // 1 if module contains the main function, 0 otherwise bad bool // module failed to load and should be ignored
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 40K bytes - Viewed (0) -
src/cmd/link/internal/ld/lib.go
GOTPLT loader.Sym Tlsg loader.Sym Tlsoffset int Dynamic loader.Sym DynSym loader.Sym DynStr loader.Sym unreachableMethod loader.Sym // Symbol containing a list of all the inittasks that need // to be run at startup. mainInittasks loader.Sym } // mkArchSym is a helper for setArchSyms, to set up a special symbol. func (ctxt *Link) mkArchSym(name string, ver int, ls *loader.Sym) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 18:45:27 UTC 2024 - 88.6K bytes - Viewed (0) -
test/noinit.go
} } func init() { for false { } } // Actual test: check for init funcs in runtime data structures. type initTask struct { state uint32 nfns uint32 } //go:linkname main_inittask main..inittask var main_inittask initTask func main() { if nfns := main_inittask.nfns; nfns != 0 { println(nfns) panic("unexpected init funcs") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 14 17:57:36 UTC 2023 - 6.8K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/resources/org/gradle/reporting/performanceReport.js
var allTags = $('#filter-popover .form-check-input').toArray().map(checkbox => checkbox.value); refreshCards(allTags) } function initTabs() { if (window.location.hash.length > 0) { allScenarioButtonClicked() } else if ($('#failed-scenarios').length > 0) { failedScenarioButtonClicked() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.2K bytes - Viewed (0)