Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 70 for livable (0.08 sec)

  1. src/cmd/link/doc.go

    	-buildmode mode
    		Set build mode (default exe).
    	-c
    		Dump call graphs.
    	-compressdwarf
    		Compress DWARF if possible (default true).
    	-cpuprofile file
    		Write CPU profile to file.
    	-d
    		Disable generation of dynamic executables.
    		The emitted code is the same in either case; the option
    		controls only whether a dynamic header is included.
    		The dynamic header is on by default, even without any
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:11:52 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. 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)
  3. src/runtime/mem_linux.go

    	}
    
    	if debug.harddecommit > 0 {
    		p, err := mmap(v, n, _PROT_NONE, _MAP_ANON|_MAP_FIXED|_MAP_PRIVATE, -1, 0)
    		if p != v || err != 0 {
    			throw("runtime: cannot disable permissions in address space")
    		}
    	}
    }
    
    func sysUsedOS(v unsafe.Pointer, n uintptr) {
    	if debug.harddecommit > 0 {
    		p, err := mmap(v, n, _PROT_READ|_PROT_WRITE, _MAP_ANON|_MAP_FIXED|_MAP_PRIVATE, -1, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprogcgo/sigstack.go

    	st.ss_sp = (char*)base;
    	st.ss_flags = 0;
    	st.ss_size = CSIGSTKSZ;
    	if (sigaltstack(&st, &ost) < 0) {
    		perror("sigaltstack failed");
    		abort();
    	}
    
    	// Call Go.
    	SigStackCallback();
    
    	// Disable signal stack and protect it so we can detect reuse.
    	if (ost.ss_flags & SS_DISABLE) {
    		// Darwin libsystem has a bug where it checks ss_size
    		// even if SS_DISABLE is set. (The kernel gets it right.)
    		ost.ss_size = CSIGSTKSZ;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/cmd/pprof/readlineui.go

    // The upstream pprof command implements the same functionality
    // using the github.com/chzyer/readline package.
    type readlineUI struct {
    	term *term.Terminal
    }
    
    func newReadlineUI() driver.UI {
    	// disable readline UI in dumb terminal. (golang.org/issue/26254)
    	if v := strings.ToLower(os.Getenv("TERM")); v == "" || v == "dumb" {
    		return nil
    	}
    	// test if we can use term.ReadLine
    	// that assumes operation in the raw mode.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:10:36 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  8. 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)
  9. src/runtime/crash_unix_test.go

    		t.Errorf("unexpected \"unexpected SPWRITE\" in traceback:\n%s", tb)
    	}
    }
    
    func init() {
    	if len(os.Args) >= 2 && os.Args[1] == "testPanicSystemstackInternal" {
    		// Complete any in-flight GCs and disable future ones. We're going to
    		// block goroutines on runtime locks, which aren't ever preemptible for the
    		// GC to scan them.
    		runtime.GC()
    		debug.SetGCPercent(-1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 20:11:47 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  10. src/sync/atomic/value.go

    	}
    	vp := (*efaceWords)(unsafe.Pointer(v))
    	vlp := (*efaceWords)(unsafe.Pointer(&val))
    	for {
    		typ := LoadPointer(&vp.typ)
    		if typ == nil {
    			// Attempt to start first store.
    			// Disable preemption so that other goroutines can use
    			// active spin wait to wait for completion.
    			runtime_procPin()
    			if !CompareAndSwapPointer(&vp.typ, nil, unsafe.Pointer(&firstStoreInProgress)) {
    				runtime_procUnpin()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:48:55 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top