- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 168 for Malloc (0.16 sec)
-
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) -
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) -
src/cmd/cgo/ast.go
if goname == "errno" { error_(sel.Pos(), "cannot refer to errno directly; see documentation") return } if goname == "_CMalloc" { error_(sel.Pos(), "cannot refer to C._CMalloc; use C.malloc") return } if goname == "malloc" { goname = "_CMalloc" } name := f.Name[goname] if name == nil { name = &Name{ Go: goname, } f.Name[goname] = name f.NamePos[name] = sel.Pos() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 16:54:27 UTC 2023 - 14.3K bytes - Viewed (0) -
src/runtime/lockrank.go
lockRankSudog lockRankTimers lockRankTimer lockRankNetpollInit lockRankRoot lockRankItab lockRankReflectOffs lockRankUserArenaState // TRACEGLOBAL lockRankTraceBuf lockRankTraceStrings // MALLOC lockRankFin lockRankSpanSetSpine lockRankMspanSpecial lockRankTraceTypeTab // MPROF lockRankGcBitsArenas lockRankProfInsert lockRankProfBlock lockRankProfMemActive lockRankProfMemFuture
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:47:01 UTC 2024 - 19.9K bytes - Viewed (0) -
src/runtime/os2_aix.go
//go:cgo_import_dynamic libc_getsystemcfg getsystemcfg "libc.a/shr_64.o" //go:cgo_import_dynamic libc_kill kill "libc.a/shr_64.o" //go:cgo_import_dynamic libc_madvise madvise "libc.a/shr_64.o" //go:cgo_import_dynamic libc_malloc malloc "libc.a/shr_64.o" //go:cgo_import_dynamic libc_mmap mmap "libc.a/shr_64.o" //go:cgo_import_dynamic libc_mprotect mprotect "libc.a/shr_64.o" //go:cgo_import_dynamic libc_munmap munmap "libc.a/shr_64.o"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 20.9K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.cc
*len = debug_str.size(); char* ret = static_cast<char*>(malloc(*len + 1)); memcpy(ret, debug_str.c_str(), *len + 1); return ret; } char* TF_FunctionDebugString(TF_Function* func, size_t* len) { const auto& debug_str = DebugString(func->record->fdef()); *len = debug_str.size(); char* ret = static_cast<char*>(malloc(*len + 1)); memcpy(ret, debug_str.c_str(), *len + 1); return ret; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 29.4K bytes - Viewed (0) -
tensorflow/c/experimental/next_pluggable_device/c_api.cc
if (!value.ok()) { return nullptr; } // Caller is responsible to call `TF_DeleteBuffer` to release the buffer. TF_Buffer* result = TF_NewBuffer(); const std::string& value_str = *value; void* data = malloc(value_str.length()); value_str.copy(static_cast<char*>(data), value_str.length(), 0); result->data = data; result->length = value_str.length(); result->data_deallocator = [](void* data, size_t length) { free(data); };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 05:48:24 UTC 2024 - 13.9K bytes - Viewed (0) -
src/net/rpc/server_test.go
func TestCountMallocs(t *testing.T) { if testing.Short() { t.Skip("skipping malloc count in short mode") } if runtime.GOMAXPROCS(0) > 1 { t.Skip("skipping; GOMAXPROCS>1") } fmt.Printf("mallocs per rpc round trip: %v\n", countMallocs(dialDirect, t)) } func TestCountMallocsOverHTTP(t *testing.T) { if testing.Short() { t.Skip("skipping malloc count in short mode") } if runtime.GOMAXPROCS(0) > 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 05:23:29 UTC 2023 - 19K bytes - Viewed (0) -
src/crypto/internal/boring/rsa.go
} if C._goboringcrypto_EVP_PKEY_CTX_set_rsa_mgf1_md(ctx, mgfMD) == 0 { return pkey, ctx, fail("EVP_PKEY_set_rsa_mgf1_md") } // ctx takes ownership of label, so malloc a copy for BoringCrypto to free. clabel := (*C.uint8_t)(C._goboringcrypto_OPENSSL_malloc(C.size_t(len(label)))) if clabel == nil { return pkey, ctx, fail("OPENSSL_malloc") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 23:38:03 UTC 2024 - 12K bytes - Viewed (0) -
src/runtime/iface.go
// Crash reliably, rather than only when we need to grow // the hash table. if getg().m.mallocing != 0 { throw("malloc deadlock") } t := itabTable if t.count >= 3*(t.size/4) { // 75% load factor // Grow hash table. // t2 = new(itabTableType) + some additional entries // We lie and tell malloc we want pointer-free memory because // all the pointed-to values are not in the heap.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 22.5K bytes - Viewed (0)