Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for AtExit (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. test/prove.go

    	i := 0
    	if len(b) > i {
    	top:
    		println(b[i]) // ERROR "Induction variable: limits \[0,\?\), increment 1$" "Proved IsInBounds$"
    		i++
    		if i < len(b) {
    			goto top
    		}
    	}
    }
    
    func atexit(foobar []func()) {
    	for i := len(foobar) - 1; i >= 0; i-- { // ERROR "Induction variable: limits \[0,\?\], increment 1"
    		f := foobar[i]
    		foobar = foobar[:i] // ERROR "IsSliceInBounds"
    		f()
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 00:02:36 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top