Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 884 for panicIP (0.15 sec)

  1. cmd/metrics-v3-types.go

    // descriptors, this function panics.
    //
    // Panics if `labels` is not a list of ordered label name and label value pairs
    // or if all labels for the metric are not provided.
    func (m *MetricValues) Set(name MetricName, value float64, labels ...string) {
    	desc, ok := m.descriptors[name]
    	if !ok {
    		panic(fmt.Sprintf("metric has no description: %s", name))
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 07:41:18 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  2. src/syscall/syscall.go

    // StringByteSlice converts a string to a NUL-terminated []byte,
    // If s contains a NUL byte this function panics instead of
    // returning an error.
    //
    // Deprecated: Use ByteSliceFromString instead.
    func StringByteSlice(s string) []byte {
    	a, err := ByteSliceFromString(s)
    	if err != nil {
    		panic("syscall: string with NUL passed to StringByteSlice")
    	}
    	return a
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/strings/builder.go

    // Grow grows b's capacity, if necessary, to guarantee space for
    // another n bytes. After Grow(n), at least n bytes can be written to b
    // without another allocation. If n is negative, Grow panics.
    func (b *Builder) Grow(n int) {
    	b.copyCheck()
    	if n < 0 {
    		panic("strings.Builder.Grow: negative count")
    	}
    	if cap(b.buf)-len(b.buf) < n {
    		b.grow(n)
    	}
    }
    
    // Write appends the contents of p to b's buffer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/crypto/sha3/sha3.go

    	d.state = spongeSqueezing
    	d.n = d.rate
    	copyOut(d, d.storage[:d.rate])
    }
    
    // Write absorbs more data into the hash's state. It panics if any
    // output has already been read.
    func (d *state) Write(p []byte) (written int, err error) {
    	if d.state != spongeAbsorbing {
    		panic("sha3: Write after Read")
    	}
    	written = len(p)
    
    	for len(p) > 0 {
    		if d.n == 0 && len(p) >= d.rate {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. src/runtime/lockrank_on.go

    func lockWithRank(l *mutex, rank lockRank) {
    	if l == &debuglock || l == &paniclk || l == &raceFiniLock {
    		// debuglock is only used for println/printlock(). Don't do lock
    		// rank recording for it, since print/println are used when
    		// printing out a lock ordering problem below.
    		//
    		// paniclk is only used for fatal throw/panic. Don't do lock
    		// ranking recording for it, since we throw after reporting a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:29:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  6. src/runtime/os3_plan9.go

    		if pc != 0 && !findfunc(pc).valid() && findfunc(*(*uintptr)(unsafe.Pointer(sp))).valid() {
    			pc = 0
    		}
    
    		// IF LR exists, sigpanictramp must save it to the stack
    		// before entry to sigpanic so that panics in leaf
    		// functions are correctly handled. This will smash
    		// the stack frame but we're not going back there
    		// anyway.
    		if usesLR {
    			c.savelr(c.lr())
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. src/math/big/float.go

    	return z
    }
    
    func validateBinaryOperands(x, y *Float) {
    	if !debugFloat {
    		// avoid performance bugs
    		panic("validateBinaryOperands called but debugFloat is not set")
    	}
    	if len(x.mant) == 0 {
    		panic("empty mantissa for x")
    	}
    	if len(y.mant) == 0 {
    		panic("empty mantissa for y")
    	}
    }
    
    // z = x + y, ignoring signs of x and y for the addition
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  8. src/runtime/cgocall.go

    			return
    		}
    		if !top && !isPinned(p) {
    			panic(errorString(msg))
    		}
    
    		cgoCheckUnknownPointer(p, msg)
    	}
    }
    
    // cgoCheckUnknownPointer is called for an arbitrary pointer into Go
    // memory. It checks whether that Go memory contains any other
    // pointer into unpinned Go memory. If it does, we panic.
    // The return values are unused but useful to see in panic tracebacks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  9. src/runtime/pinner.go

    		return nil
    	}
    	counter := (*specialPinCounter)(unsafe.Pointer(*t))
    	return &counter.counter
    }
    
    // to be able to test that the GC panics when a pinned pointer is leaking, this
    // panic function is a variable, that can be overwritten by a test.
    var pinnerLeakPanic = func() {
    	panic(errorString("runtime.Pinner: found leaking pinned pointer; forgot to call Unpin()?"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/selection.go

    // f requires a non-pointer receiver but x.a.b.c is a pointer value.
    //
    // All pointer indirections, whether due to implicit or explicit field
    // selections or * operations inserted for "pointerness", panic if
    // applied to a nil pointer, so a method call x.f() may panic even
    // before the function call.
    //
    // By contrast, a MethodExpr operation T.f is essentially equivalent
    // to a function literal of the form:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top