• Russ Cox's avatar
    cgo: use correct frame size for 0 arguments · 11695596
    Russ Cox authored
    Passing a frame size of 1 was causing the cgo callback
    to push 1 byte of arguments onto the stack, making
    the stack pointer misaligned, which had the effect of
    hiding all the pointers on the stack from the garbage
    collector.
    
    SWIG only wraps calls to C++ virtual methods, so it
    always has at least 1 argument, so SWIG does not need
    to be fixed too.
    
    Fixes #1328.
    
    R=iant
    CC=golang-dev
    https://golang.org/cl/4261046
    11695596
Name
Last commit
Last update
..
Makefile Loading commit data...
ast.go Loading commit data...
doc.go Loading commit data...
gcc.go Loading commit data...
main.go Loading commit data...
out.go Loading commit data...
util.go Loading commit data...