]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/mgc.go
[dev.ssa] Merge branch 'master' into dev.ssa
[gostls13.git] / src / runtime / mgc.go
index 1eabf43d6f24c1eeabec8e413e716c6afbde4935..c50bd028810f0b947c3c29d792bd565aed3654a4 100644 (file)
@@ -220,10 +220,11 @@ var gcphase uint32
 // The compiler knows about this variable.
 // If you change it, you must change the compiler too.
 var writeBarrier struct {
-       enabled bool   // compiler emits a check of this before calling write barrier
-       needed  bool   // whether we need a write barrier for current GC phase
-       cgo     bool   // whether we need a write barrier for a cgo check
-       alignme uint64 // guarantee alignment so that compiler can use a 32 or 64-bit load
+       enabled bool    // compiler emits a check of this before calling write barrier
+       pad     [3]byte // compiler uses 32-bit load for "enabled" field
+       needed  bool    // whether we need a write barrier for current GC phase
+       cgo     bool    // whether we need a write barrier for a cgo check
+       alignme uint64  // guarantee alignment so that compiler can use a 32 or 64-bit load
 }
 
 // gcBlackenEnabled is 1 if mutator assists and background mark