Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for getp2 (0.05 sec)

  1. test/codegen/stack.go

    func spillSlotReuse() {
    	// The return values of getp1 and getp2 need to be
    	// spilled around the calls to nopInt. Make sure that
    	// spill slot gets reused.
    
    	//arm64:`.*autotmp_2-8\(SP\)`
    	getp1()[nopInt()] = 0
    	//arm64:`.*autotmp_2-8\(SP\)`
    	getp2()[nopInt()] = 0
    }
    
    //go:noinline
    func nopInt() int {
    	return 0
    }
    
    //go:noinline
    func getp1() *[4]int {
    	return nil
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 21:29:41 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/volumebinding/assume_cache_test.go

    	// Get object that doesn't exist
    	pv, err := cache.GetPV("nothere")
    	if err == nil {
    		t.Errorf("GetPV() returned unexpected success")
    	}
    	if pv != nil {
    		t.Errorf("GetPV() returned unexpected PV %q", pv.Name)
    	}
    
    	// Add a bunch of PVs
    	pvs := map[string]*v1.PersistentVolume{}
    	for i := 0; i < 10; i++ {
    		pv := makePV(fmt.Sprintf("test-pv%v", i), "").withVersion("1").PersistentVolume
    		pvs[pv.Name] = pv
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. src/time/zoneinfo_read.go

    		//	42	off[4]
    		//	46	name[namelen]
    		//	46+namelen+xlen+fclen - next header
    		//
    		if get4(buf) != zcheader {
    			break
    		}
    		meth := get2(buf[10:])
    		size := get4(buf[24:])
    		namelen := get2(buf[28:])
    		xlen := get2(buf[30:])
    		fclen := get2(buf[32:])
    		off := get4(buf[42:])
    		zname := buf[46 : 46+namelen]
    		buf = buf[46+namelen+xlen+fclen:]
    		if string(zname) != name {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. src/runtime/export_windows_test.go

    	var info systeminfo
    	stdcall1(_GetSystemInfo, uintptr(unsafe.Pointer(&info)))
    	return int32(info.dwnumberofprocessors)
    }
    
    type ContextStub struct {
    	context
    }
    
    func (c ContextStub) GetPC() uintptr {
    	return c.ip()
    }
    
    func NewContextStub() *ContextStub {
    	var ctx context
    	ctx.set_ip(getcallerpc())
    	ctx.set_sp(getcallersp())
    	ctx.set_fp(getcallerfp())
    	return &ContextStub{ctx}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 17:25:00 UTC 2024
    - 759 bytes
    - Viewed (0)
  5. src/runtime/traceback_system_test.go

    //
    // (Copied from golang.org/x/telemetry/crashmonitor.parseStackPCs.)
    func parseStackPCs(crash string) ([]uintptr, error) {
    	// getPC parses the PC out of a line of the form:
    	//     \tFILE:LINE +0xRELPC sp=... fp=... pc=...
    	getPC := func(line string) (uint64, error) {
    		_, pcstr, ok := strings.Cut(line, " pc=") // e.g. pc=0x%x
    		if !ok {
    			return 0, fmt.Errorf("no pc= for stack frame: %s", line)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. operator/pkg/manifest/shared.go

    	ret := ""
    	for _, sf := range setFlags {
    		p, v := getPV(sf)
    		if p == path {
    			ret = v
    		}
    		// if set multiple times, return last set value
    	}
    	return ret
    }
    
    // getPV returns the path and value components for the given set flag string, which must be in path=value format.
    func getPV(setFlag string) (path string, value string) {
    	pv := strings.Split(setFlag, "=")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 03 06:27:07 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/telemetry/internal/crashmonitor/monitor.go

    // there is no possibility of strings from the crash report (which may
    // contain PII) leaking into the telemetry system.
    func parseStackPCs(crash string) ([]uintptr, error) {
    	// getPC parses the PC out of a line of the form:
    	//     \tFILE:LINE +0xRELPC sp=... fp=... pc=...
    	getPC := func(line string) (uint64, error) {
    		_, pcstr, ok := strings.Cut(line, " pc=") // e.g. pc=0x%x
    		if !ok {
    			return 0, fmt.Errorf("no pc= for stack frame: %s", line)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. tests/test_ambiguous_params.py

            AssertionError,
            match=(
                "Cannot specify `Depends` in `Annotated` and default value"
                " together for 'foo'"
            ),
        ):
    
            @app.get("/")
            async def get2(foo: Annotated[int, Depends(dep)] = Depends(dep)):
                pass  # pragma: nocover
    
        with pytest.raises(
            AssertionError,
            match=(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Dec 12 00:22:47 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/volumebinding/assume_cache.go

    	return &PVAssumeCache{
    		AssumeCache: assumecache.NewAssumeCache(logger, informer, "v1.PersistentVolume", "storageclass", pvStorageClassIndexFunc),
    		logger:      logger,
    	}
    }
    
    func (c *PVAssumeCache) GetPV(pvName string) (*v1.PersistentVolume, error) {
    	obj, err := c.Get(pvName)
    	if err != nil {
    		return nil, err
    	}
    
    	pv, ok := obj.(*v1.PersistentVolume)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. src/runtime/mwbbuf.go

    }
    
    // getX returns space in the write barrier buffer to store X pointers.
    // getX will flush the buffer if necessary. Callers should use this as:
    //
    //	buf := &getg().m.p.ptr().wbBuf
    //	p := buf.get2()
    //	p[0], p[1] = old, new
    //	... actual memory write ...
    //
    // The caller must ensure there are no preemption points during the
    // above sequence. There must be no preemption points while buf is in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top