]> Cypherpunks repositories - gostls13.git/commit
runtime: during map delete, update entries after new last element
authorKeith Randall <khr@google.com>
Tue, 16 Oct 2018 00:24:21 +0000 (17:24 -0700)
committerKeith Randall <khr@golang.org>
Tue, 13 Nov 2018 21:24:57 +0000 (21:24 +0000)
commitdf2bb9817b2184256886d9d9458753b2273c202d
treead25c261c4ecdec3b2ec3e10c441c5c602545109
parent62b850f1c50aa2532512085feb86cbe5d9c99581
runtime: during map delete, update entries after new last element

When we delete an element, and it was the last element in the bucket,
update the slots between the new last element and the old last element
with the marker that says "no more elements beyond here".

Change-Id: I8efeeddf4c9b9fc491c678f84220a5a5094c9c76
Reviewed-on: https://go-review.googlesource.com/c/142438
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/runtime/export_test.go
src/runtime/map.go
src/runtime/map_fast32.go
src/runtime/map_fast64.go
src/runtime/map_faststr.go
src/runtime/map_test.go