Hello I clearly didn't test this properly. It now fails with: --- FAIL: TestFreeOSMemory-89 (0.00 ...
13 years, 1 month ago
(2013-02-19 03:36:03 UTC)
#5
Message was sent while issue was closed.
Hello
I clearly didn't test this properly. It now fails with:
--- FAIL: TestFreeOSMemory-89 (0.00 seconds)
garbage_test.go:86: released before=0; released after=0; did not go up
FAIL
Regards
Albert
It always works the first time, right? I suggest moving the allocation back to the ...
13 years, 1 month ago
(2013-02-19 16:32:52 UTC)
#6
Message was sent while issue was closed.
It always works the first time, right? I suggest moving the allocation back to
the global (it is there so that there cannot be any trace of the allocation
lying around on the test goroutine stack) and then just make the test do:
if big == nil {
return
}
so that subsequent tests do not repeat the test.
Issue 7319050: code review 7319050: runtime/debug: make TestFreeOSMemory repeatable
(Closed)
Created 13 years, 1 month ago by dvyukov
Modified 13 years, 1 month ago
Reviewers: albert.strasheim, rsc
Base URL:
Comments: 0