aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/export_test.go
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2019-01-04 20:17:15 +0000
committerMichael Knyszek <mknyszek@google.com>2019-01-10 18:15:48 +0000
commit4b3f04c63b5b1a1bbc4dfd71c34341ea4e935115 (patch)
tree5da95c95bcc936225cc3e90ca5be87cf920d593f /src/runtime/export_test.go
parent44cf595a7efcd3d7048c745d1d1531696bcb5941 (diff)
downloadgo1.12beta2.tar.xz
runtime: make mTreap iterator bidirectionalgo1.12beta2
This change makes mTreap's iterator type, treapIter, bidirectional instead of unidirectional. This change helps support moving the find operation on a treap to return an iterator instead of a treapNode, in order to hide the details of the treap when accessing elements. For #28479. Change-Id: I5dbea4fd4fb9bede6e81bfd089f2368886f98943 Reviewed-on: https://go-review.googlesource.com/c/156918 Reviewed-by: Austin Clements <austin@google.com> Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/export_test.go')
-rw-r--r--src/runtime/export_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go
index de66b07c68..9eaf92dc7c 100644
--- a/src/runtime/export_test.go
+++ b/src/runtime/export_test.go
@@ -337,7 +337,7 @@ func ReadMemStatsSlow() (base, slow MemStats) {
slow.BySize[i].Frees = bySize[i].Frees
}
- for i := mheap_.scav.iter(); i.valid(); i = i.next() {
+ for i := mheap_.scav.start(); i.valid(); i = i.next() {
slow.HeapReleased += uint64(i.span().released())
}