Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 295 for relocs (0.25 sec)

  1. src/cmd/link/internal/x86/obj.go

    			LinuxdynldMusl: "/lib/ld-musl-i386.so.1",
    			Freebsddynld:   "/usr/libexec/ld-elf.so.1",
    			Openbsddynld:   "/usr/libexec/ld.so",
    			Netbsddynld:    "/usr/libexec/ld.elf_so",
    			Solarisdynld:   "/lib/ld.so.1",
    
    			Reloc1:    elfreloc1,
    			RelocSize: 8,
    			SetupPLT:  elfsetupplt,
    		},
    	}
    
    	return arch, theArch
    }
    
    func archinit(ctxt *ld.Link) {
    	switch ctxt.HeadType {
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:32:19 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. src/unicode/utf16/utf16_test.go

    func TestAllocationsDecode(t *testing.T) {
    	testenv.SkipIfOptimizationOff(t)
    
    	for _, tt := range decodeTests {
    		allocs := testing.AllocsPerRun(10, func() {
    			out := Decode(tt.in)
    			if out == nil {
    				t.Errorf("Decode(%x) = nil", tt.in)
    			}
    		})
    		if allocs > 0 {
    			t.Errorf("Decode allocated %v times", allocs)
    		}
    	}
    }
    
    func TestDecode(t *testing.T) {
    	for _, tt := range decodeTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. test/fixedbugs/issue20780.go

    // We have a limit of 1GB for stack frames.
    // Make sure we include the callee args section.
    
    package main
    
    type Big = [400e6]byte
    
    func f() { // GC_ERROR "stack frame too large"
    	// Note: This test relies on the fact that we currently always
    	// spill function-results to the stack, even if they're so
    	// large that we would normally heap allocate them. If we ever
    	// improve the backend to spill temporaries to the heap, this
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Jan 10 08:01:49 UTC 2021
    - 755 bytes
    - Viewed (0)
  4. src/runtime/pprof/pprof.go

    	values := []int64{0, 0}
    	var locs []uint64
    	expandedStack := pprof_makeProfStack()
    	for _, r := range records {
    		values[0] = r.Count
    		values[1] = int64(float64(r.Cycles) / cpuGHz)
    		// For count profiles, all stack addresses are
    		// return PCs, which is what appendLocsForStack expects.
    		n := pprof_fpunwindExpand(expandedStack[:], r.Stack)
    		locs = b.appendLocsForStack(locs[:0], expandedStack[:n])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  5. src/internal/xcoff/xcoff.go

    }
    
    type Reloc32 struct {
    	Rvaddr  uint32 // (virtual) address of reference
    	Rsymndx uint32 // Index into symbol table
    	Rsize   uint8  // Sign and reloc bit len
    	Rtype   uint8  // Toc relocation type
    }
    
    type Reloc64 struct {
    	Rvaddr  uint64 // (virtual) address of reference
    	Rsymndx uint32 // Index into symbol table
    	Rsize   uint8  // Sign and reloc bit len
    	Rtype   uint8  // Toc relocation type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 08 20:36:37 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  6. pkg/kubelet/userns/userns_manager_test.go

    		// The last ID of the userns range (allocated+userNsLength) should be within bounds.
    		assert.True(t, allocated <= minimumMappingUID+mappingLen-userNsLength)
    		allocs = append(allocs, allocated)
    	}
    	for i, v := range allocs {
    		assert.Equal(t, true, m.isSet(v), "m.isSet(%d) should be true", v)
    		m.Release(types.UID(fmt.Sprintf("%d", i)))
    		assert.Equal(t, false, m.isSet(v), "m.isSet(%d) should be false", v)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. src/io/multi_test.go

    	type simpleWriter struct { // hide bytes.Buffer's WriteString
    		Writer
    	}
    	mw := MultiWriter(simpleWriter{&sink1}, simpleWriter{&sink2})
    	allocs := int(testing.AllocsPerRun(1000, func() {
    		WriteString(mw, "foo")
    	}))
    	if allocs != 1 {
    		t.Errorf("num allocations = %d; want 1", allocs)
    	}
    }
    
    type writeStringChecker struct{ called bool }
    
    func (c *writeStringChecker) WriteString(s string) (n int, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:32 UTC 2022
    - 10K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go

    		s := utilrand.String(size)
    		f := func() {
    			b := toBytes(s)
    			if len(b) != size {
    				t.Errorf("invalid length: %d", len(b))
    			}
    		}
    		allocs := testing.AllocsPerRun(100, f)
    		if allocs > 0 {
    			t.Errorf("expected zero allocations, got %v", allocs)
    		}
    	})
    
    	t.Run("toString semantics", func(t *testing.T) {
    		t.Parallel()
    
    		b := make([]byte, size)
    		if _, err := rand.Read(b); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  9. test/live1.go

    // trigger the generation of wrapper functions with no
    // clear line number (they end up using line 1), and those
    // would have annotations printed if we used -live=1,
    // like the live.go test does.
    // Instead, this test relies on the fact that the liveness
    // analysis turns any non-live parameter on entry into
    // a compile error. Compiling successfully means that bug
    // has been avoided.
    
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            int result = BigIntegerMath.log2(x, mode);
            assertTrue(ZERO.setBit(result).compareTo(x) >= 0);
            assertTrue(result == 0 || ZERO.setBit(result - 1).compareTo(x) < 0);
          }
        }
      }
    
      // Relies on the correctness of isPowerOfTwo(BigInteger).
      public void testLog2Exact() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
          // We only expect an exception if x was not a power of 2.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 17:58:33 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top