]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/mklockrank.go
runtime: prevent send on closed channel in wakeableSleep
[gostls13.git] / src / runtime / mklockrank.go
index afa4946ff41e038e7043fb72c2ea5487c0a17a76..4cb232b1baf31bac7dd3bb40e48364a01c3186bb 100644 (file)
@@ -64,6 +64,7 @@ assistQueue,
 < sched;
 sched < allg, allp;
 allp < timers;
+timers < wakeableSleep;
 timers < netpollInit;
 
 # Channels
@@ -109,11 +110,14 @@ allg,
 < MALLOC
 # Below MALLOC is the malloc implementation.
 < fin,
-  gcBitsArenas,
   spanSetSpine,
   mspanSpecial,
   MPROF;
 
+# We can acquire gcBitsArenas for pinner bits, and
+# it's guarded by mspanSpecial.
+MALLOC, mspanSpecial < gcBitsArenas;
+
 # Memory profiling
 MPROF < profInsert, profBlock, profMemActive;
 profMemActive < profMemFuture;