Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for getp2 (0.04 sec)

  1. 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)
  2. src/cmd/compile/internal/ir/bitset.go

    package ir
    
    type bitset8 uint8
    
    func (f *bitset8) set(mask uint8, b bool) {
    	if b {
    		*(*uint8)(f) |= mask
    	} else {
    		*(*uint8)(f) &^= mask
    	}
    }
    
    func (f bitset8) get2(shift uint8) uint8 {
    	return uint8(f>>shift) & 3
    }
    
    // set2 sets two bits in f using the bottom two bits of b.
    func (f *bitset8) set2(shift uint8, b uint8) {
    	// Clear old bits.
    	*(*uint8)(f) &^= 3 << shift
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:03:56 UTC 2022
    - 734 bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/cmd/compile/internal/ir/mini.go

    func (n *miniNode) SetEsc(x uint16)   { n.esc = x }
    
    const (
    	miniTypecheckShift = 0
    	miniWalked         = 1 << 2 // to prevent/catch re-walking
    )
    
    func (n *miniNode) Typecheck() uint8 { return n.bits.get2(miniTypecheckShift) }
    func (n *miniNode) SetTypecheck(x uint8) {
    	if x > 2 {
    		panic(fmt.Sprintf("cannot SetTypecheck %d", x))
    	}
    	n.bits.set2(miniTypecheckShift, x)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 22:09:44 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  6. 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)
  7. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishSnapshotIntegTest.groovy

        publishing {
            publications {
                pub(MavenPublication) {
                    from components.java
                }
            }
        }
    """
            def module = getM2().mavenRepo().module('org.gradle', 'snapshotInstall', '1.0-SNAPSHOT')
    
            when:
            succeeds 'publishToMavenLocal'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 12:20:56 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. src/cmd/go/internal/cache/cache_test.go

    		}
    	}
    	for i := 0; i < n; i++ {
    		id := ActionID(dummyID(i))
    		entry, err := c.Get(id)
    		if err != nil {
    			t.Fatalf("Get2(%x): %v", id, err)
    		}
    		if entry.OutputID != dummyID(i*99) || entry.Size != int64(i)*101 {
    			t.Errorf("Get2(%x) = %x, %d, want %x, %d", id, entry.OutputID, entry.Size, dummyID(i*99), int64(i)*101)
    		}
    	}
    }
    
    func TestVerifyPanic(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:49:37 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  9. src/runtime/atomic_pointer.go

    // See go.dev/issue/67401.
    //
    //go:linkname atomicwb
    //go:nosplit
    func atomicwb(ptr *unsafe.Pointer, new unsafe.Pointer) {
    	slot := (*uintptr)(unsafe.Pointer(ptr))
    	buf := getg().m.p.ptr().wbBuf.get2()
    	buf[0] = *slot
    	buf[1] = uintptr(new)
    }
    
    // atomicstorep performs *ptr = new atomically and invokes a write barrier.
    //
    //go:nosplit
    func atomicstorep(ptr unsafe.Pointer, new unsafe.Pointer) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. test/chan/powser1.go

    		case it = <-dat[0]:
    			out[0] = it
    			dat[0] = nil
    		case it = <-dat[1]:
    			out[1] = it
    			dat[1] = nil
    		}
    	}
    	return out
    }
    
    // Get one rat from each of 2 demand channels
    
    func get2(in0 *dch, in1 *dch) []rat {
    	return getn([]*dch{in0, in1})
    }
    
    func copy(in *dch, out *dch) {
    	for {
    		<-out.req
    		out.dat <- get(in)
    	}
    }
    
    func repeat(dat rat, out *dch) {
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 25 22:22:20 UTC 2020
    - 12.7K bytes
    - Viewed (0)
Back to top