aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/syscall
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2014-04-17 23:27:31 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-04-17 23:27:31 +0000
commite8ad3ca026f1417bb2dfea7e7193227b28482e41 (patch)
tree4637a8de3aba930b34de6b718664b0fb00af5b17 /libgo/go/syscall
parente315e8a5b9386a91adf31910760da6cc1b9ca487 (diff)
downloadgcc-e8ad3ca026f1417bb2dfea7e7193227b28482e41.zip
gcc-e8ad3ca026f1417bb2dfea7e7193227b28482e41.tar.gz
gcc-e8ad3ca026f1417bb2dfea7e7193227b28482e41.tar.bz2
runtime: remove use of obsolete map deletion syntax
The use of this syntax was eliminated upstream in Go 992248b2adc2, but this particular use slipped through somehow. From-SVN: r209506
Diffstat (limited to 'libgo/go/syscall')
-rw-r--r--libgo/go/syscall/syscall_unix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/syscall/syscall_unix.go b/libgo/go/syscall/syscall_unix.go
index 966090a..5559c7c 100644
--- a/libgo/go/syscall/syscall_unix.go
+++ b/libgo/go/syscall/syscall_unix.go
@@ -153,7 +153,7 @@ func (m *mmapper) Munmap(data []byte) (err error) {
if errno := m.munmap(uintptr(unsafe.Pointer(&b[0])), uintptr(len(b))); errno != nil {
return errno
}
- m.active[p] = nil, false
+ delete(m.active, p)
return nil
}