]> Cypherpunks repositories - gostls13.git/commit
runtime: disallow malloc or panic in scavenge
authorAustin Clements <austin@google.com>
Thu, 16 Mar 2017 21:02:24 +0000 (17:02 -0400)
committerAustin Clements <austin@google.com>
Sun, 19 Mar 2017 22:42:28 +0000 (22:42 +0000)
commitdf6025bc0d7746fdf40a39398e5d8799ccf78a55
tree325cb8155328960205c1d9132deb0464d2139021
parent13ae271d5d007dcd630d9f43d6a43016b9af6e5c
runtime: disallow malloc or panic in scavenge

Mallocs and panics in the scavenge path are particularly nasty because
they're likely to silently self-deadlock on the mheap.lock. Avoid
sinking lots of time into debugging these issues in the future by
turning these into immediate throws.

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