gcc/libgo/go/runtime
Ian Lance Taylor 692aefcd56 runtime: work around escaping closure in export_test.go
When compiling runtime, it is not allowed for local variables
    and closures to be heap allocated. In one test, there is a go
    statement with a closure. In the gc compiler, it distinguishes
    capturing variable by value vs. by address, and rewrites it to
    passing the captured values as arguments. Currently we don't
    have this, and the escape analysis decides to heap allocate the
    closure and also the captured variables, which is not allowed.
    Work around it by passing the variables explicitly.
    
    This is in preparation of turning on escape analysis for the
    runtime.
    
    Reviewed-on: https://go-review.googlesource.com/86245

From-SVN: r256419
2018-01-10 05:26:29 +00:00
..
debug libgo: update to go1.9 2017-09-14 17:11:35 +00:00
internal libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
msan
pprof libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
testdata libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
trace libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
alg.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
append_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
callers_test.go
cgo_gccgo.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
cgocall.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
cgocheck.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
chan_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
chan.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
chanbarrier_test.go
closure_test.go
compiler.go
complex_test.go
cpuprof.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
cputicks.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
crash_cgo_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
crash_nonunix_test.go
crash_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
crash_unix_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
debug.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
env_posix.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
env_test.go
error.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
example_test.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
export_arm_test.go
export_linux_test.go
export_mmap_test.go
export_test.go runtime: work around escaping closure in export_test.go 2018-01-10 05:26:29 +00:00
export_unix_test.go internal,net,os,runtime,syscall: fixes for AIX following update to go1.9 2017-09-20 14:59:39 +00:00
export_windows_test.go
extern.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
fastlog2_test.go
fastlog2.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
fastlog2table.go
ffi.go
float.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
gc_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
gcinfo_test.go
hash32.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
hash64.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
hash_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
hashmap_fast.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
hashmap.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
heapdump.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
iface_test.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
iface.go
lfstack_32bit.go
lfstack_64bit.go
lfstack_test.go
lfstack.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
lock_futex.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
lock_sema.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
malloc_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
malloc.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
map_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
mapspeed_test.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
mbarrier.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
mbitmap.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
mcache.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
mcentral.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
mem_gccgo.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
memmove_linux_amd64_test.go
memmove_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
mfinal_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
mfinal.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
mfixalloc.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
mgc_gccgo.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
mgc.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
mgclarge.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
mgcmark.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
mgcsweep.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
mgcsweepbuf.go
mgcwork.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
mheap.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
mkfastlog2table.go
mksizeclasses.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
mprof.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
msan0.go
msize.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
mstats.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
mwbbuf.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
net_plan9.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
netpoll_aix.go internal,net,os,runtime,syscall: fixes for AIX following update to go1.9 2017-09-20 14:59:39 +00:00
netpoll_epoll.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
netpoll_kqueue.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
netpoll_nacl.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
netpoll_solaris.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
netpoll_stub.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
netpoll_windows.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
netpoll.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
norace_test.go
numcpu_freebsd_test.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
os_aix.go
os_darwin.go
os_dragonfly.go
os_freebsd.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
os_gccgo.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
os_linux_ppc64x.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
os_linux.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
os_netbsd.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
os_openbsd.go
os_solaris.go
panic.go runtime: noescape some functions/variables 2018-01-10 05:15:52 +00:00
print.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
proc_runtime_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
proc_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
proc.go runtime: noescape some functions/variables 2018-01-10 05:15:52 +00:00
profbuf_test.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
profbuf.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
proflabel.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
race0.go
rand_test.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
rdebug.go
relax_stub.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
runtime1.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
runtime2.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
runtime_mmap_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
runtime_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
runtime_unix_test.go
runtime-lldb_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
runtime.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
rwmutex_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
rwmutex.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
select.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
sema.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
signal_gccgo.go runtime: noescape some functions/variables 2018-01-10 05:15:52 +00:00
signal_sighandler.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
signal_unix.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
sigqueue.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
sizeclasses.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
slice.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
stack.go
string_test.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
string.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
stubs2.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
stubs_linux.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
stubs_nonlinux.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
stubs.go runtime: noescape some functions/variables 2018-01-10 05:15:52 +00:00
symtab_test.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
symtab.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
time.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
timeasm.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
timestub.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
trace.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
traceback_gccgo.go runtime: noescape some functions/variables 2018-01-10 05:15:52 +00:00
type.go
typekind.go
unaligned1.go
unaligned2.go
utf8.go
vdso_none.go
write_err_android.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
write_err.go