| // Copyright 2009 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| /* Stub for calling malloc from Go */ |
| if(a->ret == NULL && a->n == 0) |
| /* Stub for calling free from Go */ |
| /* Stub for creating a new thread */ |
| x_cgo_thread_start(ThreadStart *arg) |
| /* Make our own copy that can persist after we return. */ |
| fprintf(stderr, "runtime/cgo: out of memory in thread_start\n"); |
| _cgo_sys_thread_start(ts); /* OS-dependent half */ |