]> Cypherpunks repositories - gostls13.git/commit
runtime: more cgocallback_gofunc work
authorRuss Cox <rsc@golang.org>
Wed, 24 Jul 2013 13:01:57 +0000 (09:01 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 24 Jul 2013 13:01:57 +0000 (09:01 -0400)
commitf01128257858e98be7354aa887a5142cc756d7a8
treef87a4856064e112883c95118f627084415dffb97
parenta0935cc97983c3d3e4b2be896ecc0d92572a02c0
runtime: more cgocallback_gofunc work

Debugging the Windows breakage I noticed that SEH
only exists on 386, so we can balance the two stacks
a little more on amd64 and reclaim another word.

Now we're down to just one word consumed by
cgocallback_gofunc, having reclaimed 25% of the
overall budget (4 words out of 16).

Separately, fix windows/386 - the SEH must be on the
m0 stack, as must the saved SP, so we are forced to have
a three-word frame for 386. It matters much less for
386, because there 128 bytes gives 32 words to use.

R=dvyukov, alex.brainman
CC=golang-dev
https://golang.org/cl/11551044
src/pkg/runtime/asm_386.s
src/pkg/runtime/asm_amd64.s
src/pkg/runtime/cgocall.c
src/pkg/runtime/proc.c