void * _cgo_allocate (size_t n) { void *ret; runtime_exitsyscall (0); ret = alloc_saved (n); runtime_entersyscall (0); return ret; }
void syscall_cgocall () { M* m; G* g; m = runtime_m (); ++m->ncgocall; g = runtime_g (); ++g->ncgo; runtime_entersyscall (); }
void syscall_cgocallbackdone () { M *mp; runtime_entersyscall (0); mp = runtime_m (); if (mp->dropextram && mp->ncgo == 0) { mp->dropextram = false; runtime_dropm (); } }
void syscall_cgocall () { M* m; if (runtime_needextram && runtime_cas (&runtime_needextram, 1, 0)) runtime_newextram (); runtime_lockOSThread(); m = runtime_m (); ++m->ncgocall; ++m->ncgo; runtime_entersyscall (0); }
void syscall_cgocall () { M* m; G* g; if (runtime_needextram && runtime_cas (&runtime_needextram, 1, 0)) runtime_newextram (); m = runtime_m (); ++m->ncgocall; g = runtime_g (); ++g->ncgo; runtime_entersyscall (); }
void runtime_testing_entersyscall() { runtime_entersyscall(); }
void syscall_cgocallbackdone () { runtime_entersyscall (); }