Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for plainError (0.17 sec)

  1. src/runtime/export_debug_test.go

    	if gp.lockedm == 0 {
    		return nil, plainError("goroutine not locked to thread")
    	}
    
    	tid := int(gp.lockedm.ptr().procid)
    	if tid == 0 {
    		return nil, plainError("missing tid")
    	}
    
    	f := efaceOf(&fn)
    	if f._type == nil || f._type.Kind_&abi.KindMask != abi.Func {
    		return nil, plainError("fn must be a function")
    	}
    	fv := (*funcval)(f.data)
    
    	a := efaceOf(&stackArgs)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. src/runtime/export_debug_arm64_test.go

    	ctxt.set_pc(ctxt.pc() + 4)
    }
    
    // case 8
    func (h *debugCallHandler) debugCallUnsafe(ctxt *sigctxt) {
    	sp := ctxt.sp()
    	reason := *(*string)(unsafe.Pointer(uintptr(sp) + 8))
    	h.err = plainError(reason)
    	ctxt.set_pc(ctxt.pc() + 4)
    }
    
    // case 16
    func (h *debugCallHandler) restoreSigContext(ctxt *sigctxt) {
    	// Restore all registers except for pc and sp
    	pc, sp := ctxt.pc(), ctxt.sp()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 23 05:38:56 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  6. src/runtime/export_debug_ppc64le_test.go

    	ctxt.set_pc(ctxt.pc() + 4)
    }
    
    // case 8
    func (h *debugCallHandler) debugCallUnsafe(ctxt *sigctxt) {
    	sp := ctxt.sp()
    	reason := *(*string)(unsafe.Pointer(uintptr(sp) + 40))
    	h.err = plainError(reason)
    	ctxt.set_pc(ctxt.pc() + 4)
    }
    
    // case 16
    func (h *debugCallHandler) restoreSigContext(ctxt *sigctxt) {
    	// Restore all registers except for pc and sp
    	pc, sp := ctxt.pc(), ctxt.sp()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 15:33:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  7. src/runtime/export_debug_amd64_test.go

    }
    
    // case 8
    func (h *debugCallHandler) debugCallUnsafe(ctxt *sigctxt) {
    	rsp := ctxt.rsp()
    	reason := *(*string)(unsafe.Pointer(uintptr(rsp)))
    	h.err = plainError(reason)
    }
    
    // case 16
    func (h *debugCallHandler) restoreSigContext(ctxt *sigctxt) {
    	// Restore all registers except RIP and RSP.
    	rip, rsp := ctxt.rip(), ctxt.rsp()
    	fp := ctxt.regs().fpstate
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 23 05:38:56 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top