- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 56 for xatexit (0.24 sec)
-
src/cmd/dist/util.go
bghelpers.Wait() xexit(2) } var atexits []func() // xexit exits the process with return code n. func xexit(n int) { for i := len(atexits) - 1; i >= 0; i-- { atexits[i]() } os.Exit(n) } // xatexit schedules the exit-handler f to be run when the program exits. func xatexit(f func()) { atexits = append(atexits, f) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 17:50:29 UTC 2023 - 11.2K bytes - Viewed (0) -
src/cmd/dist/build.go
obj := pathf("%s/pkg/obj", goroot) if !isdir(obj) { xmkdir(obj) } xatexit(func() { xremove(obj) }) // Create build cache directory. objGobuild := pathf("%s/pkg/obj/go-build", goroot) if rebuildall { xremoveall(objGobuild) } xmkdirall(objGobuild) xatexit(func() { xremoveall(objGobuild) }) // Create directory for bootstrap versions of standard library .a files.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:34:40 UTC 2024 - 54K bytes - Viewed (0) -
src/cmd/dist/buildtool.go
// We could use a temporary directory outside $GOROOT instead, // but it is easier to debug on failure if the files are in a known location. workspace := pathf("%s/pkg/bootstrap", goroot) xremoveall(workspace) xatexit(func() { xremoveall(workspace) }) base := pathf("%s/src/bootstrap", workspace) xmkdirall(base) // Copy source code into $GOROOT/pkg/bootstrap and rewrite import paths.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 23:29:41 UTC 2024 - 11.5K bytes - Viewed (0) -
src/cmd/dist/test.go
if strings.HasPrefix(os.Getenv("GO_BUILDER_NAME"), "linux-") { if os.Getuid() == 0 { // Don't bother making GOROOT unwritable: // we're running as root, so permissions would have no effect. } else { xatexit(t.makeGOROOTUnwritable()) } } if !t.json { if err := t.maybeLogMetadata(); err != nil { t.failed = true if t.keepGoing { log.Printf("Failed logging metadata: %v", err) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 16:01:35 UTC 2024 - 50K bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_build_simple.txt
go tool covdata percent -i=data/goodexit stdout 'coverage:.*[1-9][0-9.]+%' # Program makes a direct call to os.Exit(1). env GOCOVERDIR=data/badexit ! exec ./example.exe badexit ! stderr '^warning: GOCOVERDIR not set, no coverage data emitted' go tool covdata percent -i=data/badexit stdout 'coverage:.*[1-9][0-9.]+%' # Program invokes panic. env GOCOVERDIR=data/panic ! exec ./example.exe panic
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 28 11:50:58 UTC 2022 - 3.1K bytes - Viewed (0) -
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) -
pkg/log/default_test.go
{ f: func() { Fatal("Hello") }, pat: timePattern + "\tfatal\tHello", wantExit: true, }, { f: func() { Fatalf("Hello") }, pat: timePattern + "\tfatal\tHello", wantExit: true, }, { f: func() { Fatalf("%s", "Hello") }, pat: timePattern + "\tfatal\tHello", wantExit: true, }, { f: func() { Debug("Hello") },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 7.4K 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) -
pkg/log/scope_test.go
pat: timePattern + "\tfatal\ttestScope\tHello", wantExit: true, }, { f: func() { s.Fatalf("Hello") }, pat: timePattern + "\tfatal\ttestScope\tHello", wantExit: true, }, { f: func() { s.Fatalf("%s", "Hello") }, pat: timePattern + "\tfatal\ttestScope\tHello", wantExit: true, }, { f: func() { s.Debug("Hello") },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 03 17:36:09 UTC 2024 - 11K bytes - Viewed (0)