- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 727 for reallocation (0.3 sec)
-
src/cmd/cgo/internal/testerrors/badsym_test.go
backslash = true } else { backslash = false } } } if !lastSpace { cc = append(cc, s[start:]) } // Force reallocation (and avoid aliasing bugs) for tests that append to cc. cc = cc[:len(cc):len(cc)] return cc } func goEnv(t *testing.T, key string) string { out, err := exec.Command("go", "env", key).CombinedOutput()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 01:37:31 UTC 2023 - 5.7K bytes - Viewed (0) -
test/fixedbugs/issue13799.go
// Cause of bug -- escape of closure failed to escape (shared) data structures // of map. Assign to fn declared outside of loop triggers escape of closure. // Heap -> stack pointer eventually causes badness when stack reallocation // occurs. var fn func() // ERROR "moved to heap: fn$" i := 0 // ERROR "moved to heap: i$" for ; i < maxI; i++ { // var fn func() // this makes it work, because fn stays off heap
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 4.9K bytes - Viewed (0) -
src/encoding/gob/decoder.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 7.2K bytes - Viewed (0) -
src/encoding/gob/encoder.go
freeList *encoderState // list of free encoderStates; avoids reallocation byteBuf encBuffer // buffer for top-level encoderState err error } // Before we encode a message, we reserve space at the head of the // buffer in which to encode its length. This means we can use the // buffer to assemble the message without another allocation. const maxLength = 9 // Maximum size of an encoded length.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 7.8K bytes - Viewed (0) -
src/encoding/gob/encoder_test.go
if err != nil { t.Fatal("bytes: decode:", err) } if !bytes.Equal(x, y) { t.Errorf("bytes: expected %q got %q\n", x, y) } if addr != &y[0] { t.Errorf("bytes: unnecessary reallocation") } } // general slice { x := []rune("abcd") enc := NewEncoder(buf) err := enc.Encode(x) if err != nil { t.Errorf("ints: encode: %s", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 29.7K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.cc
if (input_tensors != nullptr) { // Note that we take the address of the elements in `all_input_tensors` // below. Allocate enough space so that no reallocation happens, which will // make the pointers invalid. all_input_tensors.reserve(num_inputs); for (int i = 0; i < num_inputs; ++i) { if (input_tensors[i] == nullptr) continue;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 29.4K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/cshared_test.go
libgodir += "_shared" } case "dragonfly", "freebsd", "linux", "netbsd", "openbsd", "solaris", "illumos": libgodir += "_shared" } cc = append(cc, "-I", filepath.Join("pkg", libgodir)) // Force reallocation (and avoid aliasing bugs) for parallel tests that append to cc. cc = cc[:len(cc):len(cc)] if GOOS == "windows" { exeSuffix = ".exe" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 21K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/carchive_test.go
libbase += "_shared" } } libgodir = filepath.Join(GOPATH, "pkg", libbase, "testcarchive") cc = append(cc, "-I", libgodir) // Force reallocation (and avoid aliasing bugs) for parallel tests that append to cc. cc = cc[:len(cc):len(cc)] if GOOS == "windows" { exeSuffix = ".exe" } return m.Run() } func goEnv(key string) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 00:43:51 UTC 2023 - 34.8K bytes - Viewed (0) -
src/runtime/export_test.go
func MakeAddrRanges(a ...AddrRange) AddrRanges { // Methods that manipulate the backing store of addrRanges.ranges should // not be used on the result from this function (e.g. add) since they may // trigger reallocation. That would normally be fine, except the new // backing store won't come from the heap, but from persistentalloc, so // we'll leak some memory implicitly. ranges := make([]addrRange, 0, len(a)) total := uintptr(0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/MyMem.h
*/ /** @file * Memory management functions (user interface). * Two versions of memory allocation/deallocation are available. * If compiled with MEMTRACE defined, CUnit keeps track of all * system allocations & deallocations. The memory record can * then be reported using CU_CREATE_MEMORY_REPORT. Otherwise, * standard system memory allocation is used without tracing. */ /** @addtogroup Framework * @{ */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 4K bytes - Viewed (0)