Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for plainError (0.15 sec)

  1. src/runtime/error.go

    func (e errorAddressString) Addr() uintptr {
    	return e.addr
    }
    
    // plainError represents a runtime error described a string without
    // the prefix "runtime error: " after invoking errorString.Error().
    // See Issue #14965.
    type plainError string
    
    func (e plainError) RuntimeError() {}
    
    func (e plainError) Error() string {
    	return string(e)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. src/runtime/chan.go

    	typeBitsBulkBarrier(t, uintptr(dst), uintptr(src), t.Size_)
    	memmove(dst, src, t.Size_)
    }
    
    func closechan(c *hchan) {
    	if c == nil {
    		panic(plainError("close of nil channel"))
    	}
    
    	lock(&c.lock)
    	if c.closed != 0 {
    		unlock(&c.lock)
    		panic(plainError("close of closed channel"))
    	}
    
    	if raceenabled {
    		callerpc := getcallerpc()
    		racewritepc(c.raceaddr(), callerpc, abi.FuncPCABIInternal(closechan))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  3. src/runtime/map_fast64.go

    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname mapassign_fast64
    func mapassign_fast64(t *maptype, h *hmap, key uint64) unsafe.Pointer {
    	if h == nil {
    		panic(plainError("assignment to entry in nil map"))
    	}
    	if raceenabled {
    		callerpc := getcallerpc()
    		racewritepc(unsafe.Pointer(h), callerpc, abi.FuncPCABIInternal(mapassign_fast64))
    	}
    	if h.flags&hashWriting != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. src/runtime/map_fast32.go

    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname mapassign_fast32
    func mapassign_fast32(t *maptype, h *hmap, key uint32) unsafe.Pointer {
    	if h == nil {
    		panic(plainError("assignment to entry in nil map"))
    	}
    	if raceenabled {
    		callerpc := getcallerpc()
    		racewritepc(unsafe.Pointer(h), callerpc, abi.FuncPCABIInternal(mapassign_fast32))
    	}
    	if h.flags&hashWriting != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  5. src/runtime/select.go

    	}
    	goto retc
    
    retc:
    	if caseReleaseTime > 0 {
    		blockevent(caseReleaseTime-t0, 1)
    	}
    	return casi, recvOK
    
    sclose:
    	// send on closed channel
    	selunlock(scases, lockorder)
    	panic(plainError("send on closed channel"))
    }
    
    func (c *hchan) sortkey() uintptr {
    	return uintptr(unsafe.Pointer(c))
    }
    
    // A runtimeSelect is a single case passed to rselect.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 13 21:36:04 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. src/runtime/map_faststr.go

    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname mapassign_faststr
    func mapassign_faststr(t *maptype, h *hmap, s string) unsafe.Pointer {
    	if h == nil {
    		panic(plainError("assignment to entry in nil map"))
    	}
    	if raceenabled {
    		callerpc := getcallerpc()
    		racewritepc(unsafe.Pointer(h), callerpc, abi.FuncPCABIInternal(mapassign_faststr))
    	}
    	if h.flags&hashWriting != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. 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)
Back to top