Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 417 for Malloc (0.38 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump_test.cc

      mlir::OpBuilder builder(&ctx);
      auto module_op = builder.create<mlir::ModuleOp>(builder.getUnknownLoc());
      // Destroy by calling destroy() to avoid memory leak since it is allocated
      // with malloc().
      const absl::Cleanup module_op_cleanup = [module_op] { module_op->destroy(); };
    
      const mlir::LogicalResult result = pm.run(module_op);
      EXPECT_FALSE(failed(result));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:17:14 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    	func C.GoBytes(unsafe.Pointer, C.int) []byte
    
    As a special case, C.malloc does not call the C library malloc directly
    but instead calls a Go helper function that wraps the C library malloc
    but guarantees never to return nil. If C's malloc indicates out of memory,
    the helper function crashes the program, like when Go itself runs out
    of memory. Because C.malloc cannot fail, it has no two-result form
    that returns errno.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  3. src/runtime/arena.go

    	}
    
    	// Prevent preemption as we set up the space for a new object.
    	//
    	// Act like we're allocating.
    	mp := acquirem()
    	if mp.mallocing != 0 {
    		throw("malloc deadlock")
    	}
    	if mp.gsignal == getg() {
    		throw("malloc during signal")
    	}
    	mp.mallocing = 1
    
    	var ptr unsafe.Pointer
    	if !typ.Pointers() {
    		// Allocate pointer-less objects from the tail end of the chunk.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  4. tensorflow/c/tf_tensor.h

    // memory is allocated to pass the Tensor to the C API. The allocated memory
    // satisfies TensorFlow's memory alignment preferences and should be preferred
    // over calling malloc and free.
    //
    // The caller must set the Tensor values by writing them to the pointer returned
    // by TF_TensorData with length TF_TensorByteSize.
    TF_CAPI_EXPORT extern TF_Tensor* TF_AllocateTensor(TF_DataType,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 16:40:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. src/sort/search_test.go

    func TestSearchWrappersDontAlloc(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping malloc count in short mode")
    	}
    	if runtime.GOMAXPROCS(0) > 1 {
    		t.Skip("skipping; GOMAXPROCS>1")
    	}
    	allocs := testing.AllocsPerRun(100, runSearchWrappers)
    	if allocs != 0 {
    		t.Errorf("expected no allocs for runSearchWrappers, got %v", allocs)
    	}
    }
    
    func BenchmarkSearchWrappers(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 07 14:42:13 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  6. src/go/printer/testdata/declarations.golden

    	_ "io/ioutil"	// a comment
    	"io"		// testing alignment
    	. "os"
    	// a comment
    )
    
    // a case that caused problems in the past (comment placement)
    import (
    	. "fmt"
    	"io"
    	"malloc"	// for the malloc count test only
    	"math"
    	"strings"
    	"testing"
    )
    
    // more import examples
    import (
    	"xxx"
    	"much_longer_name"	// comment
    	"short_name"		// comment
    )
    
    import (
    	_ "xxx"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
  7. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-string.h

      // delete[].  Returns the cloned string, or NULL if the input is
      // NULL.
      //
      // This is different from strdup() in string.h, which allocates
      // memory using malloc().
      static const char* CloneCString(const char* c_str);
    
    #if GTEST_OS_WINDOWS_MOBILE
      // Windows CE does not have the 'ANSI' versions of Win32 APIs. To be
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. src/go/printer/testdata/declarations.input

           _ "io/ioutil" // a comment
           "io" // testing alignment
           . "os"
           // a comment
    )
    
    // a case that caused problems in the past (comment placement)
    import (
    	. "fmt"
    	"io"
    	"malloc"	// for the malloc count test only
    	"math"
    	"strings"
    	"testing"
    )
    
    // more import examples
    import (
    	"xxx"
    	"much_longer_name" // comment
    	"short_name" // comment
    )
    
    import (
    	_ "xxx"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.5K bytes
    - Viewed (0)
  9. src/syscall/exec_freebsd.go

    // (Pipe is close-on-exec so if exec succeeds, it will be closed.)
    // In the child, this function must not acquire any locks, because
    // they might have been locked at the time of the fork. This means
    // no rescheduling, no malloc calls, and no new stack segments.
    // For the same reason compiler does not race instrument it.
    // The calls to RawSyscall are okay because they are assembly
    // functions that do not grow the stack.
    //
    //go:norace
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-string.h

      // delete[].  Returns the cloned string, or NULL if the input is
      // NULL.
      //
      // This is different from strdup() in string.h, which allocates
      // memory using malloc().
      static const char* CloneCString(const char* c_str);
    
    #if GTEST_OS_WINDOWS_MOBILE
      // Windows CE does not have the 'ANSI' versions of Win32 APIs. To be
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top