Example #1
0
void *
_cgo_allocate (size_t n)
{
  void *ret;

  runtime_exitsyscall (0);
  ret = alloc_saved (n);
  runtime_entersyscall (0);
  return ret;
}
Example #2
0
File: go-cgo.c Project: Lao16/gcc
void
syscall_cgocall ()
{
  M* m;
  G* g;

  m = runtime_m ();
  ++m->ncgocall;
  g = runtime_g ();
  ++g->ncgo;
  runtime_entersyscall ();
}
Example #3
0
void
syscall_cgocallbackdone ()
{
  M *mp;

  runtime_entersyscall (0);
  mp = runtime_m ();
  if (mp->dropextram && mp->ncgo == 0)
    {
      mp->dropextram = false;
      runtime_dropm ();
    }
}
Example #4
0
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);
}
Example #5
0
File: go-cgo.c Project: axw/llgo
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 ();
}
Example #6
0
void
runtime_testing_entersyscall()
{
	runtime_entersyscall();
}
Example #7
0
File: go-cgo.c Project: Lao16/gcc
void
syscall_cgocallbackdone ()
{
  runtime_entersyscall ();
}