File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1294,7 +1294,7 @@ func mstart1() {
1294
1294
func mstartm0 () {
1295
1295
// Create an extra M for callbacks on threads not created by Go.
1296
1296
// An extra M is also needed on Windows for callbacks created by
1297
- // syscall.NewCallback.
1297
+ // syscall.NewCallback. See issue #6751 for details.
1298
1298
if (iscgo || GOOS == "windows" ) && ! cgoHasExtraM {
1299
1299
cgoHasExtraM = true
1300
1300
newextram ()
@@ -1623,7 +1623,8 @@ func needm(x byte) {
1623
1623
if (iscgo || GOOS == "windows" ) && ! cgoHasExtraM {
1624
1624
// Can happen if C/C++ code calls Go from a global ctor.
1625
1625
// Can also happen on Windows if a global ctor uses a
1626
- // callback created using syscall.NewCallback.
1626
+ // callback created by syscall.NewCallback. See issue #6751
1627
+ // for details.
1627
1628
//
1628
1629
// Can not throw, because scheduler is not initialized yet.
1629
1630
write (2 , unsafe .Pointer (& earlycgocallback [0 ]), int32 (len (earlycgocallback )))
@@ -4222,7 +4223,8 @@ func checkdead() {
4222
4223
4223
4224
// If we are not running under cgo, but we have an extra M then account
4224
4225
// for it. (It is possible to have an extra M on Windows without cgo to
4225
- // accommodate callbacks created by syscall.NewCallback.)
4226
+ // accommodate callbacks created by syscall.NewCallback. See issue #6751
4227
+ // for details.)
4226
4228
var run0 int32
4227
4229
if ! iscgo && cgoHasExtraM {
4228
4230
run0 = 1
You can’t perform that action at this time.
0 commit comments