Esempio n. 1
0
void *
_cgo_allocate (size_t n)
{
  void *ret;

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

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

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