Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 133 for livable (0.13 sec)

  1. src/encoding/json/encode_test.go

    	}
    	x := Foo{Number(`invalid`)}
    
    	if _, err := Marshal(&x); err == nil {
    		t.Fatalf("Marshal error: got nil, want non-nil")
    	}
    }
    
    func TestMarshalErrorAndReuseEncodeState(t *testing.T) {
    	// Disable the GC temporarily to prevent encodeState's in Pool being cleaned away during the test.
    	percent := debug.SetGCPercent(-1)
    	defer debug.SetGCPercent(percent)
    
    	// Trigger an error in Marshal with cyclic data.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/debug_test.go

    		t.Skip(skipReasons[:len(skipReasons)-2])
    	}
    
    	optFlags := "" // Whatever flags are needed to test debugging of optimized code.
    	dbgFlags := "-N -l"
    	if *useGdb && !*inlines {
    		// For gdb (default), disable inlining so that a compiler test does not depend on library code.
    		// TODO: Technically not necessary in 1.10 and later, but it causes a largish regression that needs investigation.
    		optFlags += " -l"
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    	}
    
    	if !formatter {
    		if !found {
    			pass.ReportRangef(call, "%s format %s has unknown verb %c", state.name, state.format, state.verb)
    			return false
    		}
    		for _, flag := range state.flags {
    			// TODO: Disable complaint about '0' for Go 1.10. To be fixed properly in 1.11.
    			// See issues 23598 and 23605.
    			if flag == '0' {
    				continue
    			}
    			if !strings.ContainsRune(v.flags, rune(flag)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  4. src/runtime/pprof/pprof_test.go

    	defer func() {
    		if t.Failed() {
    			t.Logf("Failure of this test may indicate that your system suffers from a known Linux kernel bug fixed on newer kernels. See https://golang.org/issue/49065.")
    		}
    	}()
    
    	// Disable on affected builders to avoid flakiness, but otherwise keep
    	// it enabled to potentially warn users that they are on a broken
    	// kernel.
    	if testenv.Builder() != "" && (runtime.GOARCH == "386" || runtime.GOARCH == "amd64") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  5. src/runtime/mgcsweep.go

    func isSweepDone() bool {
    	return sweep.active.isDone()
    }
    
    // Returns only when span s has been swept.
    //
    //go:nowritebarrier
    func (s *mspan) ensureSwept() {
    	// Caller must disable preemption.
    	// Otherwise when this function returns the span can become unswept again
    	// (if GC is triggered on another goroutine).
    	gp := getg()
    	if gp.m.locks == 0 && gp.m.mallocing == 0 && gp != gp.m.g0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ppc64/asm.go

    // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
    // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    // THE SOFTWARE.
    
    package ppc64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:54:08 UTC 2024
    - 63.7K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    	if r1 == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func SetProcessPriorityBoost(process Handle, disable bool) (err error) {
    	var _p0 uint32
    	if disable {
    		_p0 = 1
    	}
    	r1, _, e1 := syscall.Syscall(procSetProcessPriorityBoost.Addr(), 2, uintptr(process), uintptr(_p0), 0)
    	if r1 == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
  8. src/sync/atomic/atomic_test.go

    		hammerStoreLoadInt64Method, hammerStoreLoadUint64Method,
    	}
    	n := int(1e6)
    	if testing.Short() {
    		n = int(1e4)
    	}
    	const procs = 8
    	defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(procs))
    	// Disable the GC because hammerStoreLoadPointer invokes
    	// write barriers on values that aren't real pointers.
    	defer debug.SetGCPercent(debug.SetGCPercent(-1))
    	// Ensure any in-progress GC is finished.
    	runtime.GC()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 71.4K bytes
    - Viewed (0)
  9. src/debug/elf/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: Tue Apr 16 00:01:16 UTC 2024
    - 134.6K bytes
    - Viewed (0)
  10. src/runtime/mheap.go

    	// could make the slow path here several times faster by
    	// batching heap frees.
    
    	// Bail early if there's no more reclaim work.
    	if h.reclaimIndex.Load() >= 1<<63 {
    		return
    	}
    
    	// Disable preemption so the GC can't start while we're
    	// sweeping, so we can read h.sweepArenas, and so
    	// traceGCSweepStart/Done pair on the P.
    	mp := acquirem()
    
    	trace := traceAcquire()
    	if trace.ok() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
Back to top