]> Cypherpunks repositories - gostls13.git/commit
runtime: wait to update arena_used until after mapping bitmap
authorRuss Cox <rsc@golang.org>
Mon, 8 Jun 2015 02:59:29 +0000 (22:59 -0400)
committerAustin Clements <austin@google.com>
Thu, 11 Jun 2015 18:15:21 +0000 (18:15 +0000)
commitd57c889ae8bdfdddbfb242f90b90f649988a720e
tree97d84c2c17ff8e3171783859a0b99de56967b820
parenta788c913fa667a723ca55539b41fee30291ed92e
runtime: wait to update arena_used until after mapping bitmap

This avoids a race with gcmarkwb_m that was leading to faults.

Fixes #10212.

Change-Id: I6fcf8d09f2692227063ce29152cb57366ea22487
Reviewed-on: https://go-review.googlesource.com/10816
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/malloc.go
src/runtime/mbitmap.go
src/runtime/mheap.go