• Simon Ferquel's avatar
    runtime: do not crash in lastcontinuehandler when running as DLL · e5e5fb02
    Simon Ferquel authored
    If Go DLL is used by external C program, and lastcontinuehandler
    is reached, lastcontinuehandler will crash the process it is
    running in.
    
    But it should not be up to Go runtime to decide if process to be
    crashed or not - it should be up to C runtime. This CL adjusts
    lastcontinuehandler to not to crash when running as DLL.
    
    Fixes #32648.
    
    Change-Id: Ia455e69b8dde2a6f42f06b90e8af4aa322ca269a
    GitHub-Last-Rev: dbdffcb43206e94ef130ecadd1c82a8763225ac2
    GitHub-Pull-Request: golang/go#32574
    Reviewed-on: https://go-review.googlesource.com/c/go/+/181839
    Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarAlex Brainman <alex.brainman@gmail.com>
    e5e5fb02
main.go 893 Bytes