• Russ Cox's avatar
    runtime: handle decommit failure gracefully on Windows · 30b8af98
    Russ Cox authored
    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
    30b8af98
mem_windows.c 3.42 KB