- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 397 for nalloc (0.11 sec)
-
src/runtime/mgcscavenge_test.go
"math/rand" . "runtime" "testing" "time" ) // makePallocData produces an initialized PallocData by setting // the ranges of described in alloc and scavenge. func makePallocData(alloc, scavenged []BitRange) *PallocData { b := new(PallocData) for _, v := range alloc { if v.N == 0 { // Skip N==0. It's harmless and allocRange doesn't // handle this case. continue } b.AllocRange(v.I, v.N) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 25.2K bytes - Viewed (0) -
src/runtime/mheap.go
func (s spanAllocType) manual() bool { return s != spanAllocHeap } // alloc allocates a new span of npage pages from the GC'd heap. // // spanclass indicates the span's size class and scannability. // // Returns a span that has been fully initialized. span.needzero indicates // whether the span has been zeroed. Note that it may not be. func (h *mheap) alloc(npages uintptr, spanclass spanClass) *mspan {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 78K bytes - Viewed (0) -
tensorflow/c/tf_buffer.cc
extern "C" { TF_Buffer* TF_NewBuffer() { return new TF_Buffer{nullptr, 0, nullptr}; } TF_Buffer* TF_NewBufferFromString(const void* proto, size_t proto_len) { void* copy = tensorflow::port::Malloc(proto_len); std::memcpy(copy, proto, proto_len); TF_Buffer* buf = new TF_Buffer; buf->data = copy; buf->length = proto_len; buf->data_deallocator = [](void* data, size_t length) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 21:57:32 UTC 2024 - 3K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main4.c
stack_t ss; int i; stack_t nss; struct timespec ts; // Set up an alternate signal stack for this thread. memset(&ss, 0, sizeof ss); ss.ss_sp = malloc(CSIGSTKSZ); if (ss.ss_sp == NULL) { die("malloc"); } ss.ss_flags = 0; ss.ss_size = CSIGSTKSZ; if (sigaltstack(&ss, NULL) < 0) { die("sigaltstack"); } // Send ourselves a SIGIO. This will be caught by the Go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 4.5K bytes - Viewed (0) -
pkg/kubelet/status/fake_status_manager.go
klog.InfoS("SetPodAllocation()") for _, container := range pod.Spec.Containers { var alloc v1.ResourceList if container.Resources.Requests != nil { alloc = container.Resources.Requests.DeepCopy() } m.state.SetContainerResourceAllocation(string(pod.UID), container.Name, alloc) } return nil } func (m *fakeManager) SetPodResizeStatus(podUID types.UID, resizeStatus v1.PodResizeStatus) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 07 05:59:34 UTC 2023 - 2.7K bytes - Viewed (0) -
src/net/http/header_test.go
if testing.Short() { t.Skip("skipping alloc test in short mode") } if race.Enabled { t.Skip("skipping test under race detector") } if runtime.GOMAXPROCS(0) > 1 { t.Skip("skipping; GOMAXPROCS>1") } n := testing.AllocsPerRun(100, func() { buf.Reset() testHeader.WriteSubset(&buf, nil) }) if n > 0 { t.Errorf("allocs = %g; want 0", n) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 01:07:32 UTC 2022 - 6.1K bytes - Viewed (0) -
src/os/exec/exec_linux_test.go
// license that can be found in the LICENSE file. //go:build linux && cgo // On systems that use glibc, calling malloc can create a new arena, // and creating a new arena can read /sys/devices/system/cpu/online. // If we are using cgo, we will call malloc when creating a new thread. // That can break TestExtraFiles if we create a new thread that creates
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 26 14:49:07 UTC 2022 - 1.2K bytes - Viewed (0) -
src/runtime/cgo/gcc_freebsd_amd64.c
x_cgo_init(G *g, void (*setg)(void*)) { uintptr *pbounds; // Deal with memory sanitizer/clang interaction. // See gcc_linux_amd64.c for details. setg_gcc = setg; pbounds = (uintptr*)malloc(2 * sizeof(uintptr)); if (pbounds == NULL) { fatalf("malloc failed: %s", strerror(errno)); } _cgo_set_stacklo(g, pbounds); free(pbounds); } void _cgo_sys_thread_start(ThreadStart *ts) { pthread_attr_t attr;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 22:06:46 UTC 2023 - 1.5K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue23555a/a.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package issue23555 // #include <stdlib.h> import "C" func X() { C.free(C.malloc(10))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 250 bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/legacy_profile.go
return true } return false } var allocRxStr = strings.Join([]string{ // POSIX entry points. `calloc`, `cfree`, `malloc`, `free`, `memalign`, `do_memalign`, `(__)?posix_memalign`, `pvalloc`, `valloc`, `realloc`, // TC malloc. `tcmalloc::.*`, `tc_calloc`, `tc_cfree`, `tc_malloc`, `tc_free`, `tc_memalign`,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 22 18:58:12 UTC 2022 - 32.8K bytes - Viewed (0)