]> Cypherpunks repositories - gostls13.git/commit
runtime: remove unnecessary step from bulkBarrierPreWrite
authorAustin Clements <austin@google.com>
Mon, 24 Oct 2016 21:56:00 +0000 (17:56 -0400)
committerAustin Clements <austin@google.com>
Fri, 28 Oct 2016 21:23:42 +0000 (21:23 +0000)
commitd8256824ac39e4badb14feffe94f4342a0bd21b3
treec40c004b1c44d64b639f49739d5844267faa0826
parent70c107c68dca7d57a24b35dd81420fb889aa1031
runtime: remove unnecessary step from bulkBarrierPreWrite

Currently bulkBarrierPreWrite calls writebarrierptr_prewrite, but this
means that we check writeBarrier.needed twice and perform cgo checks
twice.

Change bulkBarrierPreWrite to call writebarrierptr_prewrite1 to skip
over these duplicate checks.

This may speed up bulkBarrierPreWrite slightly, but mostly this will
save us from running out of nosplit stack space on ppc64x in the near
future.

Updates #17503.

Change-Id: I1cea1a2207e884ab1a279c6a5e378dcdc048b63e
Reviewed-on: https://go-review.googlesource.com/31890
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mbitmap.go