Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 92 for livable (0.08 sec)

  1. src/sync/waitgroup.go

    // See the WaitGroup example.
    func (wg *WaitGroup) Add(delta int) {
    	if race.Enabled {
    		if delta < 0 {
    			// Synchronize decrements with Wait.
    			race.ReleaseMerge(unsafe.Pointer(wg))
    		}
    		race.Disable()
    		defer race.Enable()
    	}
    	state := wg.state.Add(uint64(delta) << 32)
    	v := int32(state >> 32)
    	w := uint32(state)
    	if race.Enabled && delta > 0 && v == int32(delta) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. src/flag/flag_test.go

    }
    
    func (f *zeroPanicker) String() string {
    	if !f.dontPanic {
    		panic("panic!")
    	}
    	return f.v
    }
    
    const defaultOutput = `  -A	for bootstrapping, allow 'any' type
      -Alongflagname
        	disable bounds checking
      -C	a boolean defaulting to true (default true)
      -D path
        	set relative path for local imports
      -E string
        	issue 23543 (default "0")
      -F number
        	a non-zero number (default 2.7)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  3. src/crypto/x509/root.go

    // panic.
    //
    // The fallback behavior can be forced on all platforms, even when there is a
    // system certificate pool, by setting GODEBUG=x509usefallbackroots=1 (note that
    // on Windows and macOS this will disable usage of the platform verification
    // APIs and cause the pure Go verifier to be used). Setting
    // x509usefallbackroots=1 without calling SetFallbackRoots has no effect.
    func SetFallbackRoots(roots *CertPool) {
    	if roots == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. src/cmd/dist/build.go

    func toolenv() []string {
    	var env []string
    	if !mustLinkExternal(goos, goarch, false) {
    		// Unless the platform requires external linking,
    		// we disable cgo to get static binaries for cmd/go and cmd/pprof,
    		// so that they work on systems without the same dynamic libraries
    		// as the original build system.
    		env = append(env, "CGO_ENABLED=0")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  5. src/sync/pool_test.go

    //
    //go:build !race
    
    package sync_test
    
    import (
    	"runtime"
    	"runtime/debug"
    	"slices"
    	. "sync"
    	"sync/atomic"
    	"testing"
    	"time"
    )
    
    func TestPool(t *testing.T) {
    	// disable GC so we can control when it happens.
    	defer debug.SetGCPercent(debug.SetGCPercent(-1))
    	var p Pool
    	if p.Get() != nil {
    		t.Fatal("expected empty")
    	}
    
    	// Make sure that the goroutine doesn't migrate to another P
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. src/cmd/dist/buildtool.go

    	os.Setenv("GOARCH", "")
    	os.Setenv("GOHOSTARCH", "")
    
    	// Run Go bootstrap to build binaries.
    	// Use the math_big_pure_go build tag to disable the assembly in math/big
    	// which may contain unsupported instructions.
    	// Use the purego build tag to disable other assembly code,
    	// such as in cmd/internal/notsha256.
    	cmd := []string{
    		pathf("%s/bin/go", goroot_bootstrap),
    		"install",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 23:29:41 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  7. src/cmd/go/internal/work/shell.go

    	// Replace x.go:19[/tmp/.../x.cgo1.go:18] with x.go:19.
    	// Replace *[100]_Ctype_foo with *[100]C.foo.
    	// If we're using -x, assume we're debugging and want the full dump, so disable the rewrite.
    	if !cfg.BuildX && cgoLine.MatchString(out) {
    		out = cgoLine.ReplaceAllString(out, "")
    		out = cgoTypeSigRe.ReplaceAllString(out, "C.")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  8. src/runtime/signal_unix.go

    		}
    	}
    }
    
    // setProcessCPUProfilerTimer is called when the profiling timer changes.
    // It is called with prof.signalLock held. hz is the new timer, and is 0 if
    // profiling is being disabled. Enable or disable the signal as
    // required for -buildmode=c-archive.
    func setProcessCPUProfilerTimer(hz int32) {
    	if hz != 0 {
    		// Enable the Go signal handler if not enabled.
    		if atomic.Cas(&handlingSig[_SIGPROF], 0, 1) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/elf.go

     * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
     * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdversion/stdversion.go

    	RunDespiteErrors: true,
    	Run:              run,
    }
    
    func run(pass *analysis.Pass) (any, error) {
    	// Prior to go1.22, versions.FileVersion returns only the
    	// toolchain version, which is of no use to us, so
    	// disable this analyzer on earlier versions.
    	if !slicesContains(build.Default.ReleaseTags, "go1.22") {
    		return nil, nil
    	}
    
    	// Don't report diagnostics for modules marked before go1.21,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top