]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/runtime2.go
runtime/cgo: store M for C-created thread in pthread key
[gostls13.git] / src / runtime / runtime2.go
index a9706a642e802f0aa32e5d196c7cc033a8f6638b..3ef7521ff303fbd666054374683e11f3b55256c0 100644 (file)
@@ -561,6 +561,7 @@ type m struct {
        printlock     int8
        incgo         bool          // m is executing a cgo call
        isextra       bool          // m is an extra m
+       isExtraInC    bool          // m is an extra m that is not executing Go code
        freeWait      atomic.Uint32 // Whether it is safe to free g0 and delete m (one of freeMRef, freeMStack, freeMWait)
        fastrand      uint64
        needextram    bool