• Keith Randall's avatar
    cmd/compile: abort earlier if stack frame too large · e130dcf0
    Keith Randall authored
    If the stack frame is too large, abort immediately.
    We used to generate code first, then abort.
    In issue 22200, generating code raised a panic
    so we got an ICE instead of an error message.
    
    Change the max frame size to 1GB (from 2GB).
    Stack frames between 1.1GB and 2GB didn't used to work anyway,
    the pcln table generation would have failed and generated an ICE.
    
    Fixes #22200
    
    Change-Id: I1d918ab27ba6ebf5c87ec65d1bccf973f8c8541e
    Reviewed-on: https://go-review.googlesource.com/69810
    Run-TryBot: Keith Randall <khr@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    e130dcf0
main.go 32.6 KB