- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for AtExit (0.21 sec)
-
src/cmd/covdata/covdata.go
var memprofilerateflag = flag.Int("memprofilerate", 0, "Set memprofile sampling rate to value") var matchpkg func(name string) bool var atExitFuncs []func() func atExit(f func()) { atExitFuncs = append(atExitFuncs, f) } func Exit(code int) { for i := len(atExitFuncs) - 1; i >= 0; i-- { f := atExitFuncs[i] atExitFuncs = atExitFuncs[:i] f() } os.Exit(code) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 5.7K bytes - Viewed (0) -
src/cmd/link/internal/ld/util.go
package ld import ( "cmd/link/internal/loader" "encoding/binary" "fmt" "os" ) var atExitFuncs []func() func AtExit(f func()) { atExitFuncs = append(atExitFuncs, f) } // runAtExitFuncs runs the queued set of AtExit functions. func runAtExitFuncs() { for i := len(atExitFuncs) - 1; i >= 0; i-- { atExitFuncs[i]() } atExitFuncs = nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 22 20:39:11 UTC 2023 - 2.5K bytes - Viewed (0) -
src/cmd/compile/internal/base/base.go
if logHeapTweaks { sample := append([]metrics.Sample(nil), sample...) // avoid races with GC callback AtExit(func() { metrics.Read(sample) goal := sample[GOAL].Value.Uint64() count := sample[COUNT].Value.Uint64() oldGogc := debug.SetGCPercent(100) if oldGogc == 100 { fmt.Fprintf(os.Stderr, "GCAdjust: AtExit goal %d gogc %d count %d maxprocs %d gcConcurrency %d\n", goal, oldGogc, count, mp, gcConcurrency)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 19:18:34 UTC 2023 - 8K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_activity_listener.cc
}; void FlushAllListeners(); XlaActivityListenerList* GetXlaActivityListenerList() { static XlaActivityListenerList* listener_list = new XlaActivityListenerList; static int unused = std::atexit(FlushAllListeners); (void)unused; return listener_list; } template <typename FnTy> Status ForEachListener(FnTy fn) { XlaActivityListenerList* listener_list = GetXlaActivityListenerList();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 3.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/main.go
if ctxt.Debugvlog > 0 { // dump symbol info on crash defer func() { ctxt.loader.Dump() }() } if ctxt.Debugvlog > 1 { // dump symbol info on error AtExit(func() { if nerrors > 0 { ctxt.loader.Dump() } }) } switch *flagHeadType { case "": case "windowsgui": ctxt.HeadType = objabi.Hwindows windowsgui = true default:
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/sym.go
generatorSyms: make(map[loader.Sym]generatorFunc), } if buildcfg.GOARCH != arch.Name { log.Fatalf("invalid buildcfg.GOARCH %s (want %s)", buildcfg.GOARCH, arch.Name) } AtExit(func() { if nerrors > 0 { ctxt.Out.ErrorClose() mayberemoveoutfile() } }) return ctxt } // computeTLSOffset records the thread-local storage offset.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 05 19:28:25 UTC 2023 - 3.9K bytes - Viewed (0) -
src/cmd/go/internal/base/base.go
// it is a documentation pseudo-command such as importpath. func (c *Command) Runnable() bool { return c.Run != nil } var atExitFuncs []func() func AtExit(f func()) { atExitFuncs = append(atExitFuncs, f) } func Exit() { for _, f := range atExitFuncs { f() } os.Exit(exitStatus) } func Fatalf(format string, args ...any) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 5.3K bytes - Viewed (0) -
src/cmd/go/main.go
if cfg.DebugTrace == "" { return pctx } ctx, close, err := trace.Start(pctx, cfg.DebugTrace) if err != nil { base.Fatalf("failed to start trace: %v", err) } base.AtExit(func() { if err := close(); err != nil { base.Fatalf("failed to stop trace: %v", err) } }) return ctx } // handleChdirFlag handles the -C flag before doing anything else.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:09:11 UTC 2024 - 10K bytes - Viewed (0) -
src/cmd/go/internal/work/init.go
"strconv" "sync" ) var buildInitStarted = false func BuildInit() { if buildInitStarted { base.Fatalf("go: internal error: work.BuildInit called more than once") } buildInitStarted = true base.AtExit(closeBuilders) modload.Init() instrumentInit() buildModeInit() if err := fsys.Init(base.Cwd()); err != nil { base.Fatal(err) } // Make sure -pkgdir is absolute, because we run commands
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 19:13:34 UTC 2023 - 12.2K bytes - Viewed (0) -
src/runtime/race.go
// already held it's assumed that the first caller exits the program // so other calls can hang forever without an issue. lock(&raceFiniLock) // __tsan_fini will run C atexit functions and C++ destructors, // which can theoretically call back into Go. // Tell the scheduler we entering external code. entersyscall() // We're entering external code that may call ExitProcess on
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 20.4K bytes - Viewed (0)