Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for plainError (0.78 sec)

  1. src/runtime/arena.go

    func userArenaHeapBitsSetSliceType(typ *_type, n int, ptr unsafe.Pointer, s *mspan) {
    	mem, overflow := math.MulUintptr(typ.Size_, uintptr(n))
    	if overflow || n < 0 || mem > maxAlloc {
    		panic(plainError("runtime: allocation size out of range"))
    	}
    	for i := 0; i < n; i++ {
    		userArenaHeapBitsSetType(typ, add(ptr, uintptr(i)*typ.Size_), s)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  2. src/runtime/malloc.go

    func newarray(typ *_type, n int) unsafe.Pointer {
    	if n == 1 {
    		return mallocgc(typ.Size_, typ, true)
    	}
    	mem, overflow := math.MulUintptr(typ.Size_, uintptr(n))
    	if overflow || mem > maxAlloc || n < 0 {
    		panic(plainError("runtime: allocation size out of range"))
    	}
    	return mallocgc(mem, typ, true)
    }
    
    // reflect_unsafe_NewArray is meant for package reflect,
    // but widely used packages access it using linkname.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  3. src/runtime/map.go

    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname mapassign
    func mapassign(t *maptype, h *hmap, key unsafe.Pointer) unsafe.Pointer {
    	if h == nil {
    		panic(plainError("assignment to entry in nil map"))
    	}
    	if raceenabled {
    		callerpc := getcallerpc()
    		pc := abi.FuncPCABIInternal(mapassign)
    		racewritepc(unsafe.Pointer(h), callerpc, pc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  4. src/runtime/proc.go

    func badmcall(fn func(*g)) {
    	throw("runtime: mcall called on m->g0 stack")
    }
    
    func badmcall2(fn func(*g)) {
    	throw("runtime: mcall function returned")
    }
    
    func badreflectcall() {
    	panic(plainError("arg size to reflect.call more than 1GB"))
    }
    
    //go:nosplit
    //go:nowritebarrierrec
    func badmorestackg0() {
    	if !crashStackImplemented {
    		writeErrStr("fatal: morestack on g0\n")
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top