mirror of
https://github.com/golang/go
synced 2024-11-11 19:51:37 -07:00
Correct previous commit
This commit is contained in:
parent
30c8e68cef
commit
7c04f12603
@ -111,12 +111,12 @@ func testSmallAllocations() error {
|
||||
allocSmall1(iters)
|
||||
if checkAllocations(getMemProfileRecords(), frames[0:1], iters, sizes) == nil {
|
||||
// Passed on first try, report no error.
|
||||
return err
|
||||
return nil
|
||||
}
|
||||
allocSmall2(iters)
|
||||
if checkAllocations(getMemProfileRecords(), frames[0:2], iters, sizes) == nil {
|
||||
// Passed on second try, report no error.
|
||||
return err
|
||||
return nil
|
||||
}
|
||||
allocSmall3(iters)
|
||||
// If it fails a third time, we may be onto something.
|
||||
|
Loading…
Reference in New Issue
Block a user