aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/encode_test.go
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2019-11-09 00:21:02 +0000
committerMichael Knyszek <mknyszek@google.com>2019-11-11 16:02:42 +0000
commitf511467532f7b0009b6eff7752f2250e7f63ab12 (patch)
treec7c679afef68e0a2c984544414ee85553bd13bf5 /src/encoding/json/encode_test.go
parent696c41488a2e3c0f86b01e420701c9aa05951228 (diff)
downloadgo-f511467532f7b0009b6eff7752f2250e7f63ab12.tar.xz
runtime: fix min/max logic in findScavengeCandidate
Before this CL, if max > min and max was unaligned to min, then the function could return an unaligned (unaligned to min) region to scavenge. On most platforms, this leads to some kind of crash. Fix this by explicitly aligning max to the next multiple of min. Fixes #35445. Updates #35112. Change-Id: I0af42d4a307b48a97e47ed152c619d77b0298291 Reviewed-on: https://go-review.googlesource.com/c/go/+/206277 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding/json/encode_test.go')
0 files changed, 0 insertions, 0 deletions