1. 29 Jul, 2013 1 commit
  2. 25 Jul, 2013 1 commit
    • Ian Lance Taylor's avatar
      cmd/cgo: gccgo fixes · d9d3debe
      Ian Lance Taylor authored
      Don't require a full-scale callback for calls to the special
      prologue functions.
      
      Always use a simple wrapper function for C functions, so that
      we can handle static functions defined in the import "C"
      comment.
      
      Disable a test that relies on gc-specific function names.
      
      Fixes #5905.
      
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/11406047
      d9d3debe
  3. 22 Jul, 2013 1 commit
  4. 12 Jun, 2013 1 commit
  5. 26 Mar, 2013 1 commit
  6. 25 Mar, 2013 1 commit
    • Carl Shapiro's avatar
      runtime: store asmcgocall return PC where the ARM unwind expects it · 4cb921bb
      Carl Shapiro authored
      The ARM implementation of runtime.cgocallback_gofunc diverged
      from the calling convention by leaving a word of garbage at
      the top of the stack and storing the return PC above the
      locals.  This change stores the return PC at the top of the
      stack and removes the save area above the locals.
      
      Update #5124
      This CL fixes first part of the ARM issues and added the unwind test.
      
      R=golang-dev, bradfitz, minux.ma, cshapiro, rsc
      CC=golang-dev
      https://golang.org/cl/7728045
      4cb921bb
  7. 30 Oct, 2012 1 commit
  8. 07 Mar, 2012 1 commit
  9. 24 Jan, 2012 1 commit
  10. 30 Aug, 2011 1 commit
  11. 02 May, 2011 1 commit
    • Russ Cox's avatar
      misc/cgo/test: run tests · f985638b
      Russ Cox authored
      The new gotest ignores Test functions outside *_test.go files
      (the old shell script allowed them), so replace one clumsy hack
      with another.
      
      The root problem is that the package makefiles only know
      how to run cgo for source files in the package proper, not
      for test files.  Making it work for test files is probably more
      trouble than it's worth.
      
      R=bradfitz
      CC=golang-dev
      https://golang.org/cl/4452060
      f985638b
  12. 22 Mar, 2011 1 commit
  13. 07 Mar, 2011 1 commit
    • Russ Cox's avatar
      runtime: scheduler, cgo reorganization · f9ca3b5d
      Russ Cox authored
      * Change use of m->g0 stack (aka scheduler stack).
      * Provide runtime.mcall(f) to invoke f() on m->g0 stack.
      * Replace scheduler loop entry with runtime.mcall(schedule).
      
      Runtime.mcall eliminates the need for fake scheduler states that
      exist just to run a bit of code on the m->g0 stack
      (Grecovery, Gstackalloc).
      
      The elimination of the scheduler as a loop that stops and
      starts using gosave and gogo fixes a bad interaction with the
      way cgo uses the m->g0 stack.  Cgo runs external (gcc-compiled)
      C functions on that stack, and then when calling back into Go,
      it sets m->g0->sched.sp below the added call frames, so that
      other uses of m->g0's stack will not interfere with those frames.
      Unfortunately, gogo (longjmp) back to the scheduler loop at
      this point would end up running scheduler with the lower
      sp, which no longer points at a valid stack frame for
      a call to scheduler.  If scheduler then wrote any function call
      arguments or local variables to where it expected the stack...
      f9ca3b5d