Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for xatexit (0.23 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/runtime/ehooks_test.go

    			expected string
    			musthave []string
    		}{
    			{
    				mode:     "simple",
    				expected: "bar foo",
    			},
    			{
    				mode:     "goodexit",
    				expected: "orange apple",
    			},
    			{
    				mode:     "badexit",
    				expected: "blub blix",
    			},
    			{
    				mode: "panics",
    				musthave: []string{
    					"fatal error: exit hook invoked panic",
    					"main.testPanics",
    				},
    			},
    			{
    				mode: "callsexit",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. src/runtime/testdata/testexithooks/testexithooks.go

    	_ "unsafe"
    )
    
    var modeflag = flag.String("mode", "", "mode to run in")
    
    func main() {
    	flag.Parse()
    	switch *modeflag {
    	case "simple":
    		testSimple()
    	case "goodexit":
    		testGoodExit()
    	case "badexit":
    		testBadExit()
    	case "panics":
    		testPanics()
    	case "callsexit":
    		testHookCallsExit()
    	case "exit2":
    		testExit2()
    	default:
    		panic("unknown mode")
    	}
    }
    
    func testSimple() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/dist/main.go

    list [-json] [-broken]  list all supported platforms
    test [-h]               run Go test(s)
    version                 print Go version
    
    All commands take -v flags to emit extra information.
    `)
    	xexit(2)
    }
    
    // commands records the available commands.
    var commands = map[string]func(){
    	"banner":    cmdbanner,
    	"bootstrap": cmdbootstrap,
    	"clean":     cmdclean,
    	"env":       cmdenv,
    	"install":   cmdinstall,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 22 19:44:52 UTC 2023
    - 5.5K bytes
    - Viewed (0)
Back to top