Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for UnsafePointRestart1 (0.7 sec)

  1. src/internal/abi/symtab.go

    	UnsafePointUnsafe = -2 // Unsafe for async preemption
    
    	// UnsafePointRestart1(2) apply on a sequence of instructions, within
    	// which if an async preemption happens, we should back off the PC
    	// to the start of the sequence when resuming.
    	// We need two so we can distinguish the start/end of the sequence
    	// in case that two sequences are next to each other.
    	UnsafePointRestart1 = -3
    	UnsafePointRestart2 = -4
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 14:25:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/plist.go

    				break // Reached the end, don't bother marking the end
    			}
    			p = ctxt.EndUnsafePoint(p, newprog, prevPcdata)
    			p.Pc = p.Link.Pc
    			continue
    		}
    		if isRestartable(p) {
    			val := int64(abi.UnsafePointRestart1)
    			if val == prevRestart {
    				val = abi.UnsafePointRestart2
    			}
    			prevRestart = val
    			q := Appendp(prev, newprog)
    			q.As = APCDATA
    			q.From.Type = TYPE_CONST
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  3. src/runtime/preempt.go

    		// reflect.{makeFuncStub,methodValueCall}.
    		//
    		// TODO(austin): We should improve this, or opt things
    		// in incrementally.
    		return false, 0
    	}
    	switch up {
    	case abi.UnsafePointRestart1, abi.UnsafePointRestart2:
    		// Restartable instruction sequence. Back off PC to
    		// the start PC.
    		if startpc == 0 || startpc > pc || pc-startpc > 20 {
    			throw("bad restart PC")
    		}
    		return true, startpc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  4. src/runtime/export_test.go

    	fi := findfunc(pc)
    	v := pcdatavalue(fi, abi.PCDATA_UnsafePoint, pc)
    	switch v {
    	case abi.UnsafePointUnsafe:
    		return true
    	case abi.UnsafePointSafe:
    		return false
    	case abi.UnsafePointRestart1, abi.UnsafePointRestart2, abi.UnsafePointRestartAtEntry:
    		// These are all interruptible, they just encode a nonstandard
    		// way of recovering when interrupted.
    		return false
    	default:
    		var buf [20]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top