Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 168 for Malloc (0.21 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/meta/help_test.go

    					o, err := Accessor(object)
    					if err != nil {
    						return err
    					}
    					delete(expectObjectNames, o.GetName())
    					return nil
    				})
    				if err != nil {
    					t.Errorf("each list %#v with alloc: %v", list, err)
    				}
    				if len(expectObjectNames) != 0 {
    					t.Fatal("expectObjectNames should be empty")
    				}
    			})
    		})
    	}
    }
    
    func TestExtractList(t *testing.T) {
    	tests := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 13:40:46 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

        rewriter.setInsertionPoint(rescale_op);
        auto cast_input_to_float_op = rewriter.create<CallOp>(
            loc, result_types,
            SymbolRefAttr::get(rewriter.getContext(), "tf__cast"),
            ArrayRef<Value>{input, constant_f32_op, c_false});
        auto input_x_scale_op = rewriter.create<CallOp>(
            loc, result_types, SymbolRefAttr::get(rewriter.getContext(), "tf__mul"),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  3. 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)
  4. src/net/tcpsock_test.go

    		t.Fatal(err)
    	}
    	defer server.Close()
    
    	var buf [128]byte
    	allocs := testing.AllocsPerRun(1000, func() {
    		_, err := server.Write(buf[:])
    		if err != nil {
    			t.Fatal(err)
    		}
    		_, err = io.ReadFull(client, buf[:])
    		if err != nil {
    			t.Fatal(err)
    		}
    	})
    	if allocs > 0 {
    		t.Fatalf("got %v; want 0", allocs)
    	}
    
    	var bufwrt [128]byte
    	ch := make(chan bool)
    	defer close(ch)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  5. src/runtime/mspanset.go

    // spanSetBlockAlloc represents a concurrent pool of spanSetBlocks.
    type spanSetBlockAlloc struct {
    	stack lfstack
    }
    
    // alloc tries to grab a spanSetBlock out of the pool, and if it fails
    // persistentallocs a new one and returns it.
    func (p *spanSetBlockAlloc) alloc() *spanSetBlock {
    	if s := (*spanSetBlock)(p.stack.pop()); s != nil {
    		return s
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. pilot/pkg/security/authz/builder/testdata/http/allow-full-rule-out.yaml

    Jackie Elliott <******@****.***> 1713578333 -0700
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

          auto uses = func.getSymbolUses(module);
          if (!uses) continue;
          for (auto& use : *uses) {
            // Only `mlir::func::CallOp` is supported as this requires knowing how
            // to rewrite arguments and results to a function.
            if (!isa<mlir::func::CallOp>(use.getUser())) continue;
            auto caller_parent_func =
                use.getUser()->getParentOfType<func::FuncOp>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  8. pkg/registry/core/service/portallocator/controller/repair_test.go

    }
    
    func (r *mockRangeRegistry) Get() (*api.RangeAllocation, error) {
    	r.getCalled = true
    	return r.item, r.err
    }
    
    func (r *mockRangeRegistry) CreateOrUpdate(alloc *api.RangeAllocation) error {
    	r.updateCalled = true
    	r.updated = alloc
    	return r.updateErr
    }
    
    func TestRepair(t *testing.T) {
    	clearMetrics()
    	fakeClient := fake.NewSimpleClientset()
    	registry := &mockRangeRegistry{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  9. src/regexp/exec.go

    }
    
    func (m *machine) init(ncap int) {
    	for _, t := range m.pool {
    		t.cap = t.cap[:ncap]
    	}
    	m.matchcap = m.matchcap[:ncap]
    }
    
    // alloc allocates a new thread with the given instruction.
    // It uses the free pool if possible.
    func (m *machine) alloc(i *syntax.Inst) *thread {
    	var t *thread
    	if n := len(m.pool); n > 0 {
    		t = m.pool[n-1]
    		m.pool = m.pool[:n-1]
    	} else {
    		t = new(thread)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 04 20:10:54 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  10. pkg/registry/core/service/ipallocator/controller/repair_test.go

    }
    
    func (r *mockRangeRegistry) Get() (*api.RangeAllocation, error) {
    	r.getCalled = true
    	return r.item, r.err
    }
    
    func (r *mockRangeRegistry) CreateOrUpdate(alloc *api.RangeAllocation) error {
    	r.updateCalled = true
    	r.updated = alloc
    	return r.updateErr
    }
    
    func TestRepair(t *testing.T) {
    	fakeClient := fake.NewSimpleClientset()
    	ipregistry := &mockRangeRegistry{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 21.1K bytes
    - Viewed (0)
Back to top