OSDN Git Service

runtime: Better SWIG interface for allocating Go memory from C/C++.
[pf3gnuchains/gcc-fork.git] / libgo / runtime / runtime.h
index 94f8911..76a9eef 100644 (file)
@@ -153,6 +153,9 @@ struct      G
        // uintptr      sigpc;
        uintptr gopc;   // pc of go statement that created this goroutine
 
+       int32   ncgo;
+       struct cgoalloc *cgoalloc;
+
        Traceback* traceback;
 
        ucontext_t      context;
@@ -174,6 +177,7 @@ struct      M
        int32   profilehz;
        int32   helpgc;
        uint32  fastrand;
+       uint64  ncgocall;
        Note    havenextg;
        G*      nextg;
        M*      alllink;        // on allm