]> Cypherpunks repositories - gostls13.git/commit
[dev.garbage] runtime: fix allocfreetrace
authorAustin Clements <austin@google.com>
Thu, 28 Apr 2016 19:49:39 +0000 (15:49 -0400)
committerAustin Clements <austin@google.com>
Fri, 29 Apr 2016 15:08:21 +0000 (15:08 +0000)
commit6d11490539e3aa459066b94c6587f5429dfe7a31
tree73e9c04ea6bf4fe8f467a3ba5c1ce17ca2b29da2
parent38f674687a5dbce63af60a0a52892f666d7c626c
[dev.garbage] runtime: fix allocfreetrace

We broke tracing of freed objects in GODEBUG=allocfreetrace=1 mode
when we removed the sweep over the mark bitmap. Fix it by
re-introducing the sweep over the bitmap specifically if we're in
allocfreetrace mode. This doesn't have to be even remotely efficient,
since the overhead of allocfreetrace is huge anyway, so we can keep
the code for this down to just a few lines.

Change-Id: I9e176b3b04c73608a0ea3068d5d0cd30760ebd40
Reviewed-on: https://go-review.googlesource.com/22592
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/malloc.go
src/runtime/mgcsweep.go