summaryrefslogtreecommitdiff
path: root/libgo/go/runtime/mgcscavenge_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/runtime/mgcscavenge_test.go')
-rw-r--r--libgo/go/runtime/mgcscavenge_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/runtime/mgcscavenge_test.go b/libgo/go/runtime/mgcscavenge_test.go
index 58f9e3a80d3..7f619b1e7db 100644
--- a/libgo/go/runtime/mgcscavenge_test.go
+++ b/libgo/go/runtime/mgcscavenge_test.go
@@ -419,12 +419,12 @@ func TestPageAllocScavenge(t *testing.T) {
}
for name, v := range tests {
v := v
- runTest := func(t *testing.T, locked bool) {
+ runTest := func(t *testing.T, mayUnlock bool) {
b := NewPageAlloc(v.beforeAlloc, v.beforeScav)
defer FreePageAlloc(b)
for iter, h := range v.expect {
- if got := b.Scavenge(h.request, locked); got != h.expect {
+ if got := b.Scavenge(h.request, mayUnlock); got != h.expect {
t.Fatalf("bad scavenge #%d: want %d, got %d", iter+1, h.expect, got)
}
}
@@ -436,7 +436,7 @@ func TestPageAllocScavenge(t *testing.T) {
t.Run(name, func(t *testing.T) {
runTest(t, false)
})
- t.Run(name+"Locked", func(t *testing.T) {
+ t.Run(name+"MayUnlock", func(t *testing.T) {
runTest(t, true)
})
}