- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 1,371 for Allocate (0.2 sec)
-
src/runtime/msize.go
// Malloc small size classes. // // See malloc.go for overview. // See also mksizeclasses.go for how we decide what size classes to use. package runtime // Returns size of the memory block that mallocgc will allocate if you ask for the size, // minus any inline space for metadata. func roundupsize(size uintptr, noscan bool) (reqSize uintptr) { reqSize = size if reqSize <= maxSmallSize-mallocHeaderSize { // Small object.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 1.3K bytes - Viewed (0) -
pkg/kubelet/cm/admission/errors.go
Error() string Type() string } type unexpectedAdmissionError struct{ Err error } var _ Error = (*unexpectedAdmissionError)(nil) func (e *unexpectedAdmissionError) Error() string { return fmt.Sprintf("Allocate failed due to %v, which is unexpected", e.Err) } func (e *unexpectedAdmissionError) Type() string { return ErrorReasonUnexpected } func GetPodAdmitResult(err error) lifecycle.PodAdmitResult { if err == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 08 21:15:37 UTC 2021 - 1.4K bytes - Viewed (0) -
test/fixedbugs/issue30041.go
// call on stack should not have write barrier. package main import ( "reflect" "runtime" "unsafe" ) var badPtr uintptr var sink []byte func init() { // Allocate large enough to use largeAlloc. b := make([]byte, 1<<16-1) sink = b // force heap allocation // Any space between the object and the end of page is invalid to point to. badPtr = uintptr(unsafe.Pointer(&b[len(b)-1])) + 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 01 19:23:02 UTC 2019 - 1.1K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/policy_static.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 06 13:16:15 UTC 2023 - 28.8K bytes - Viewed (0) -
test/fixedbugs/issue27695c.go
// via reflect. package main import ( "io" "reflect" "runtime" "unsafe" ) var badPtr uintptr var sink []byte func init() { // Allocate large enough to use largeAlloc. b := make([]byte, 1<<16-1) sink = b // force heap allocation // Any space between the object and the end of page is invalid to point to. badPtr = uintptr(unsafe.Pointer(&b[len(b)-1])) + 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 13 22:52:09 UTC 2018 - 1.3K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue21897.go
func test21897(t *testing.T) { // Please write barrier, kick in soon. defer debug.SetGCPercent(debug.SetGCPercent(1)) for i := 0; i < 10000; i++ { testCFNumberRef() testCFDateRef() testCFBooleanRef() // Allocate some memory, so eventually the write barrier is enabled // and it will see writes of bad pointers in the test* functions below. byteSliceSink = make([]byte, 1024) } } var byteSliceSink []byte
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 1.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
return CharBuffer.allocate(generateInt()); } @Generates ByteBuffer generateByteBuffer() { return ByteBuffer.allocate(generateInt()); } @Generates ShortBuffer generateShortBuffer() { return ShortBuffer.allocate(generateInt()); } @Generates IntBuffer generateIntBuffer() { return IntBuffer.allocate(generateInt()); } @Generates
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 17 16:33:44 UTC 2024 - 28.6K bytes - Viewed (0) -
test/fixedbugs/issue16515.go
*x = T{} // DUFFZERO again } //go:noinline // a function with large frame func g() { var x [1000]int _ = x } func main() { var s struct { a T; b [8192-62]int } // allocate 64K, hopefully it's in a new span and a few bytes before it is garbage sink = &s // force heap allocation s.a[0] = 2 zero(&s.a) if s.a[0] != 0 { println("s.a[0] =", s.a[0]) panic("zeroing failed") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 29 01:09:55 UTC 2016 - 1.1K bytes - Viewed (0) -
src/runtime/iface_test.go
{name: "E16", fn: func() { e = zero16 }}, // zero values do not allocate {name: "E32", fn: func() { e = zero32 }}, {name: "E64", fn: func() { e = zero64 }}, {name: "Estr", fn: func() { e = zerostr }}, {name: "Eslice", fn: func() { e = zeroslice }}, {name: "Econstflt", fn: func() { e = 99.0 }}, // constants do not allocate {name: "Econststr", fn: func() { e = "change" }},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 7.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ReaderInputStream.java
checkArgument(bufferSize > 0, "bufferSize must be positive: %s", bufferSize); encoder.reset(); charBuffer = CharBuffer.allocate(bufferSize); Java8Compatibility.flip(charBuffer); byteBuffer = ByteBuffer.allocate(bufferSize); } @Override public void close() throws IOException { reader.close(); } @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 28 20:13:02 UTC 2023 - 9.3K bytes - Viewed (0)