- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for mapclear (0.3 sec)
-
test/mapclear.go
Martin Möhrmann <******@****.***> 1524859139 +0200
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 08 21:15:16 UTC 2018 - 1.5K bytes - Viewed (0) -
test/codegen/maps.go
// amd64:`.*runtime\.mapclear` // amd64:-`.*runtime\.mapiterinit` for k := range m { delete(m, k) } } func MapClearNotReflexive(m map[float64]int) { // amd64:`.*runtime\.mapiterinit` // amd64:-`.*runtime\.mapclear` for k := range m { delete(m, k) } } func MapClearInterface(m map[interface{}]int) { // amd64:`.*runtime\.mapiterinit` // amd64:-`.*runtime\.mapclear` for k := range m {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 23 15:51:32 UTC 2023 - 3.6K bytes - Viewed (0) -
src/cmd/compile/internal/walk/range.go
} // mapRangeClear constructs a call to runtime.mapclear for the map range idiom. func mapRangeClear(nrange *ir.RangeStmt) ir.Node { m := nrange.X origPos := ir.SetPos(m) defer func() { base.Pos = origPos }() return mapClear(m, reflectdata.RangeMapRType(base.Pos, nrange)) } // mapClear constructs a call to runtime.mapclear for the map m. func mapClear(m, rtyp ir.Node) ir.Node { t := m.Type()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:33 UTC 2023 - 17.6K bytes - Viewed (0) -
src/cmd/internal/goobj/builtinlist.go
{"runtime.mapiterinit", 1}, {"runtime.mapdelete", 1}, {"runtime.mapdelete_fast32", 1}, {"runtime.mapdelete_fast64", 1}, {"runtime.mapdelete_faststr", 1}, {"runtime.mapiternext", 1}, {"runtime.mapclear", 1}, {"runtime.makechan64", 1}, {"runtime.makechan", 1}, {"runtime.chanrecv1", 1}, {"runtime.chanrecv2", 1}, {"runtime.chansend1", 1}, {"runtime.closechan", 1}, {"runtime.chanlen", 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) -
src/runtime/map.go
// Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname mapclear func mapclear(t *maptype, h *hmap) { if raceenabled && h != nil { callerpc := getcallerpc() pc := abi.FuncPCABIInternal(mapclear) racewritepc(unsafe.Pointer(h), callerpc, pc) } if h == nil || h.count == 0 { return } if h.flags&hashWriting != 0 { fatal("concurrent map writes")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 57.6K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/_builtin/runtime.go
func mapdelete_fast64(mapType *byte, hmap map[any]any, key uint64) func mapdelete_faststr(mapType *byte, hmap map[any]any, key string) func mapiternext(hiter *any) func mapclear(mapType *byte, hmap map[any]any) // *byte is really *runtime.Type func makechan64(chanType *byte, size int64) (hchan chan any) func makechan(chanType *byte, size int) (hchan chan any)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 10.6K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/builtin.go
{"mapiterinit", funcTag, 91}, {"mapdelete", funcTag, 91}, {"mapdelete_fast32", funcTag, 92}, {"mapdelete_fast64", funcTag, 93}, {"mapdelete_faststr", funcTag, 94}, {"mapiternext", funcTag, 95}, {"mapclear", funcTag, 96}, {"makechan64", funcTag, 98}, {"makechan", funcTag, 99}, {"chanrecv1", funcTag, 101}, {"chanrecv2", funcTag, 102}, {"chansend1", funcTag, 104}, {"closechan", funcTag, 105},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 16.2K bytes - Viewed (0) -
src/cmd/compile/internal/walk/builtin.go
return n } // If n == nil, we are clearing an array which takes zero memory, do nothing. return ir.NewBlockStmt(n.Pos(), nil) case typ.IsMap(): return mapClear(n.X, reflectdata.TypePtrAt(n.X.Pos(), n.X.Type())) } panic("unreachable") } // walkClose walks an OCLOSE node. func walkClose(n *ir.UnaryExpr, init *ir.Nodes) ir.Node {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 22:35:22 UTC 2024 - 31.2K bytes - Viewed (0) -
src/runtime/map_test.go
m[key2] += "1" if n2 := m[key2]; n2 != "1" { t.Errorf("appended '1' to empty (nil) string, got %s", n2) } } // TestIncrementAfterBulkClearKeyStringValueInt tests that map bulk // deletion (mapclear) still works as expected. Note that it was not // affected by Issue 25936. func TestIncrementAfterBulkClearKeyStringValueInt(t *testing.T) { const key1 = "" const key2 = "x" m := make(map[string]int)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 33.5K bytes - Viewed (0) -
src/reflect/value.go
func (v Value) Clear() { switch v.Kind() { case Slice: sh := *(*unsafeheader.Slice)(v.ptr) st := (*sliceType)(unsafe.Pointer(v.typ())) typedarrayclear(st.Elem, sh.Data, sh.Len) case Map: mapclear(v.typ(), v.pointer()) default: panic(&ValueError{"reflect.Value.Clear", v.Kind()}) } } // Append appends the values x to a slice s and returns the resulting slice.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 119.9K bytes - Viewed (0)