]> Cypherpunks repositories - gostls13.git/commit
runtime: handle decommit failure gracefully on Windows
authorRuss Cox <rsc@golang.org>
Tue, 13 May 2014 05:09:38 +0000 (01:09 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 13 May 2014 05:09:38 +0000 (01:09 -0400)
commit30b8af98c0d9ab172842feebf38d1a7ef00a6afa
tree76995bf16c71f70b89b411ea93346feaac4dde07
parent2d1a9510edc59cad463029fdc8ac93e62247baad
runtime: handle decommit failure gracefully on Windows

I have no test case for this at tip.
The original report included a program crashing at revision 88ac7297d2fa.
I tested this code at that revision and it does fix the crash.
However, at tip the reported code no longer crashes, presumably
because some allocation patterns have changed. I believe the
bug is still present at tip and that this code still fixes it.

Fixes #7143.

LGTM=alex.brainman
R=golang-codereviews, alex.brainman
CC=dvyukov, golang-codereviews
https://golang.org/cl/96300046
src/pkg/runtime/mem_windows.c