]> Cypherpunks repositories - gostls13.git/commit
runtime: remove unnecessary atomics from heapBitSetType
authorAustin Clements <austin@google.com>
Mon, 9 May 2016 19:12:07 +0000 (15:12 -0400)
committerAustin Clements <austin@google.com>
Wed, 21 Sep 2016 15:08:16 +0000 (15:08 +0000)
commitc03925edd37b504346c11656a6de5f5e4b791061
tree008e5353045a1e9737970fdab40530afe98814ad
parent43d9c29abb57e797075d9cc15f6e21362d4be136
runtime: remove unnecessary atomics from heapBitSetType

These used to be necessary when racing with updates to the mark bit,
but since the mark bit is no longer in the bitmap and the checkmark is
only updated with the world stopped, we can now always use regular
writes to update the type information in the heap bitmap.

Somewhat surprisingly, this has basically no overall performance
effect beyond the usual noise, but it does clean up the code.

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