- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for makeslicecopy (0.18 sec)
-
src/cmd/internal/goobj/builtinlist.go
{"runtime.selectnbsend", 1}, {"runtime.selectnbrecv", 1}, {"runtime.selectsetpc", 1}, {"runtime.selectgo", 1}, {"runtime.block", 1}, {"runtime.makeslice", 1}, {"runtime.makeslice64", 1}, {"runtime.makeslicecopy", 1}, {"runtime.growslice", 1}, {"runtime.unsafeslicecheckptr", 1}, {"runtime.panicunsafeslicelen", 1}, {"runtime.panicunsafeslicenilptr", 1}, {"runtime.unsafestringcheckptr", 1},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 7.4K bytes - Viewed (0) -
test/makeslice.go
shouldPanic("len out of range", func() { _ = make(T, uint64(n)) }) shouldPanic("cap out of range", func() { _ = make(T, 0, uint64(n)) }) } // Test make+copy panics since the gc compiler optimizes these // to runtime.makeslicecopy calls. func testMakeCopyInts(n uint64) { type T []int var c = make(T, 8) shouldPanic("len out of range", func() { x := make(T, int(n)); copy(x, c) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 07 17:50:24 UTC 2020 - 5.5K bytes - Viewed (0) -
test/fixedbugs/notinheap2.go
sink = new(embed3) // ERROR "can't be allocated in Go" sink = new(embedAlias1) // ERROR "can't be allocated in Go" sink = new(embedAlias2) // ERROR "can't be allocated in Go" // Test for special case of OMAKESLICECOPY x := make([]nih, n) // ERROR "can't be allocated in Go" copy(x, z) z = x } // Writes don't produce write barriers. var p *nih //go:nowritebarrier func h() { y.next = p.next
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 17:46:15 UTC 2022 - 1.8K bytes - Viewed (0) -
src/cmd/compile/internal/reflectdata/helpers.go
// type, and returns an expression that yields the *runtime._type // value representing that slice type's element type. func MakeSliceElemRType(pos src.XPos, n *ir.MakeExpr) ir.Node { assertOp2(n, ir.OMAKESLICE, ir.OMAKESLICECOPY) if hasRType(n, n.RType, "RType") { return n.RType } return sliceElemRType(pos, n.Type()) } // RangeMapRType asserts that n is a "range" loop over a map value,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 04:50:32 UTC 2023 - 7.1K bytes - Viewed (0)