Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for plainError (0.07 sec)

  1. 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)
  2. 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)
Back to top