- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 423 for Allocate (0.2 sec)
-
src/runtime/cgo/gcc_linux_ppc64x.S
// license that can be found in the LICENSE file. //go:build linux && (ppc64 || ppc64le) .file "gcc_linux_ppc64x.S" // Define a frame which has no argument space, but is compatible with // a call into a Go ABI. We allocate 32B to match FIXED_FRAME with // similar semantics, except we store the backchain pointer, not the // LR at offset 0. R2 is stored in the Go TOC save slot (offset 24). .set GPR_OFFSET, 32 .set FPR_OFFSET, GPR_OFFSET + 18*8
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 04 18:03:04 UTC 2023 - 2K bytes - Viewed (0) -
src/runtime/os_dragonfly.go
// Called on the parent thread (main thread in case of bootstrap), can allocate memory. func mpreinit(mp *m) { mp.gsignal = malg(32 * 1024) mp.gsignal.m = mp } // Called to initialize a new m (including the bootstrap m). // Called on the new thread, cannot allocate memory. func minit() { getg().m.procid = uint64(lwp_gettid()) minitSignals() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 7.1K bytes - Viewed (0) -
internal/s3select/json/preader.go
if r.err != nil { return nil, r.err } // Move to next block item, ok := <-r.queue if !ok { r.err = io.EOF return nil, r.err } //nolint:staticcheck // SA6002 Using pointer would allocate more since we would have to copy slice header before taking a pointer. r.kvDstPool.Put(r.current) r.current = <-item.dst r.err = item.err r.recordsRead = 0 } kvRecord := r.current[r.recordsRead]
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Mar 05 04:57:35 UTC 2023 - 6.4K bytes - Viewed (0) -
src/os/stat_plan9.go
} // Pull the real size out of the stat message. size = int(uint16(buf[0]) | uint16(buf[1])<<8) // If the stat message is larger than our buffer we will // go around the loop and allocate one that is big enough. if size <= n { d, err := syscall.UnmarshalDir(buf[:n]) if err != nil { return nil, &PathError{Op: "stat", Path: name, Err: err} } return d, nil } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Oct 08 03:57:40 UTC 2022 - 2.4K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java
* * <p>{@link CharStreams#copy} has type specific optimizations for various common Appendable and * Reader implementations, this compares the performance of the different options. */ // These benchmarks allocate a lot of data so use a large heap @VmOptions({"-Xms12g", "-Xmx12g", "-d64"}) public class CharStreamsCopyBenchmark { enum CopyStrategy { OLD { @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 23 18:59:54 UTC 2023 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/string_utils.cc
memcpy(data_.data() + offset_.back(), str, len); offset_.push_back(offset_.back() + len); return absl::OkStatus(); } int MiniDynamicBuffer::WriteToBuffer(char** buffer) { // Allocate sufficient memory to tensor buffer. int32_t num_strings = offset_.size() - 1; // Total bytes include: // * size of content (data_.size) // * offset of each tensor (sizeof(int32_t) * num_strings)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 2.9K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmServiceTest.java
} @Test void emptySha1Calculator() { ChecksumAlgorithmService.ChecksumCalculator calculator = service.select("SHA-1").getCalculator(); calculator.update(ByteBuffer.allocate(0)); assertEquals(calculator.checksum(), "da39a3ee5e6b4b0d3255bfef95601890afd80709"); } @Test void calculateByte() throws IOException {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu Dec 21 08:05:10 UTC 2023 - 4.2K bytes - Viewed (0) -
src/runtime/mcheckmark.go
func startCheckmarks() { assertWorldStopped() // Clear all checkmarks. for _, ai := range mheap_.allArenas { arena := mheap_.arenas[ai.l1()][ai.l2()] bitmap := arena.checkmarks if bitmap == nil { // Allocate bitmap on first use. bitmap = (*checkmarksMap)(persistentalloc(unsafe.Sizeof(*bitmap), 0, &memstats.gcMiscSys)) if bitmap == nil { throw("out of memory allocating checkmarks bitmap") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 2.8K bytes - Viewed (0) -
src/sync/pool.go
s := p.localSize l := p.local if uintptr(pid) < s { return indexLocal(l, pid), pid } if p.local == nil { allPools = append(allPools, p) } // If GOMAXPROCS changes between GCs, we re-allocate the array and lose the old one. size := runtime.GOMAXPROCS(0) local := make([]poolLocal, size) atomic.StorePointer(&p.local, unsafe.Pointer(&local[0])) // store-release
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 9.4K bytes - Viewed (0) -
src/runtime/rt0_linux_ppc64le.s
XOR R0, R0 // Make sure R0 is zero before _main BR _main<>(SB) TEXT _rt0_ppc64le_linux_lib(SB),NOSPLIT|NOFRAME,$0 // This is called with ELFv2 calling conventions. Convert to Go. // Allocate argument storage for call to newosproc0. STACK_AND_SAVE_HOST_TO_GO_ABI(16) MOVD R3, _rt0_ppc64le_linux_lib_argc<>(SB) MOVD R4, _rt0_ppc64le_linux_lib_argv<>(SB) // Synchronous initialization.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:17:17 UTC 2024 - 2.9K bytes - Viewed (0)