File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -435,11 +435,11 @@ func TestEmptyKeyAndValue(t *testing.T) {
435
435
// ("quick keys") as well as long keys.
436
436
func TestSingleBucketMapStringKeys_DupLen (t * testing.T ) {
437
437
testMapLookups (t , map [string ]string {
438
- "x" : "x1val" ,
439
- "xx" : "x2val" ,
440
- "foo" : "fooval" ,
441
- "bar" : "barval" , // same key length as "foo"
442
- "xxxx" : "x4val" ,
438
+ "x" : "x1val" ,
439
+ "xx" : "x2val" ,
440
+ "foo" : "fooval" ,
441
+ "bar" : "barval" , // same key length as "foo"
442
+ "xxxx" : "x4val" ,
443
443
strings .Repeat ("x" , 128 ): "longval1" ,
444
444
strings .Repeat ("y" , 128 ): "longval2" ,
445
445
})
Original file line number Diff line number Diff line change @@ -903,7 +903,7 @@ HaveSpan:
903
903
// If s was scavenged, then t may be scavenged.
904
904
start , end := t .physPageBounds ()
905
905
if s .scavenged && start < end {
906
- memstats .heap_released += uint64 (end - start )
906
+ memstats .heap_released += uint64 (end - start )
907
907
t .scavenged = true
908
908
}
909
909
s .state = mSpanManual // prevent coalescing with s
@@ -1146,7 +1146,7 @@ func (h *mheap) scavengeLargest(nbytes uintptr) {
1146
1146
//
1147
1147
// This check also preserves the invariant that spans that have
1148
1148
// `scavenged` set are only ever in the `scav` treap, and
1149
- // those which have it unset are only in the `free` treap.
1149
+ // those which have it unset are only in the `free` treap.
1150
1150
return
1151
1151
}
1152
1152
prev := t .pred ()
@@ -1175,7 +1175,7 @@ func (h *mheap) scavengeAll(now, limit uint64) uintptr {
1175
1175
for t != nil {
1176
1176
s := t .spanKey
1177
1177
next := t .succ ()
1178
- if (now - uint64 (s .unusedsince )) > limit {
1178
+ if (now - uint64 (s .unusedsince )) > limit {
1179
1179
r := s .scavenge ()
1180
1180
if r != 0 {
1181
1181
// If we ended up scavenging s, then remove it from unscav
You can’t perform that action at this time.
0 commit comments